diff --git a/.github/issue_template.md b/.github/issue_template.md new file mode 100644 index 0000000000..0f2a6140ba --- /dev/null +++ b/.github/issue_template.md @@ -0,0 +1,12 @@ +_Before filing a new issue, please **provide the following information**._ + +> I'm running: +> +> - **Which Aion version?**: 0.2.x.{git-revision} +> - **Which operating system?**: Linux +> - **Which distributor and version?**: Ubuntu 16.04 +> - **How installed?**: via binaries / from source +> - **Are you fully synchronized?**: no / yes +> - **Did you try to restart the node?**: no / yes + +_Your issue description goes here below. Try to include **actual** vs. **expected behavior** and **steps to reproduce** the issue._ diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000000..39cb993bf8 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,35 @@ +## Notice + +It is not allowed to submit your PR to the master branch directly, please submit your PR to the master-pre-merge branch. + +## Description + +Please include a brief summary of the change that this pull request proposes. Include any relevant motivation and context. List any dependencies required for this change. + +- + +Fixes Issue # . + +## Type of change + +Insert **x** into the following checkboxes to confirm (eg. [x]): +- [ ] Bug fix. +- [ ] New feature. +- [ ] Breaking change (a fix or feature that causes existing functionality to not work as expected). +- [ ] Requires documentation update. + +## Testing + +Please describe the tests you used to validate this pull request. Provide any relevant details for test configurations as well as any instructions to reproduce these results. + +- + +## Verification + +Insert **x** into the following checkboxes to confirm (eg. [x]): +- [ ] I have self-reviewed my own code and conformed to the style guidelines of this project. +- [ ] New and existing tests pass locally with my changes. +- [ ] I have added tests for my fix or feature. +- [ ] I have made appropriate changes to the corresponding documentation. +- [ ] My code generates no new warnings. +- [ ] Any dependent changes have been made. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000000..85771f72c9 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,31 @@ +# Contributing Guidelines + +## Do you have a question? + +Check out our [Aion Owner's Manual](https://github.com/aionnetwork/aion/wiki/Aion-Owner's-Manual), [Installation and Cofiguration](https://github.com/aionnetwork/aion/wiki/Installation), [FAQ](https://github.com/aionnetwork/aion/wiki/Aion-Owner's-Manual#faqs), and articles on our [wiki](https://github.com/aionnetwork/aion/wiki)! + +For further questions and discussions see our [Aion Forum](https://forum.aion.network/). + +## Report bugs! + +Do **not** open an issue on Github if you think your discovered bug could be a **security-relevant vulnerability**. Instead, either private message us on [gitter](https://gitter.im/aionnetwork) or send an email to support@aion.network. + + +Otherwise, just create a [new issue](https://github.com/aionnetwork/aion/issues/new) in our repository and state: + +- What's your aion version? +- What's your operating system and version? +- How did you install aion? +- Is your node fully synchronized? +- Did you try turning it off and on again? + +Also, try to include **steps to reproduce** the issue and expand on the **actual versus expected behavior**. + +## Contribute! + +If you would like to contribute to Aion, please **fork it**, fix bugs or implement features, and [propose a pull request](https://github.com/aionnetwork/aion/compare). + + +## License. + +By contributing to Aion, you agree that your contributions will be licensed under the [GPLv3 License](LICENSE). diff --git a/README.md b/README.md index 9657b72f6f..2fcfe82a1f 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Mainstream adoption of blockchains has been limited because of scalability, priv Core to our hypothesis is the idea that many blockchains will be created to solve unique business challenges within unique industries. As such, the Aion network is designed to support custom blockchain architectures while providing a trustless mechanism for cross-chain interoperability. -The [Aion White Papers](https://aion.network/whitepapers.html) provides more details regarding our design and project roadmap. +The [Aion White Papers](https://aion.network/developers/#whitepapers) provides more details regarding our design and project roadmap. This repository contains the main kernel implementation and releases for the Aion network. @@ -16,9 +16,7 @@ This repository contains the main kernel implementation and releases for the Aio Please refer to the details in the [Build Your Aion Network](https://github.com/aionnetwork/aion/wiki/Build-your-Aion-network) wiki to determine how to start setting up and building your Aion Network. -Please refer to the [Installation](https://github.com/aionnetwork/aion/wiki/Installation) wiki for the guide on installing the kernel prior to configuration and launching the kernel. - -Please refer to [Aion Network Configuration](https://github.com/aionnetwork/aion/wiki/Aion-Network-Configuration) wiki to set up your desired network configuration for the kernel as well as how to launch the kernel. +Please refer to the [Installation](https://github.com/aionnetwork/aion/wiki/Installation) wiki for a guide on installing and configuring the kernel. The [Owner's Manual](https://github.com/aionnetwork/aion/wiki/Aion-Owner's-Manual) wiki will include further instructions and details on working with the kernel. @@ -36,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)! diff --git a/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java b/modAionImpl/src/org/aion/zero/impl/AionBlockchainImpl.java index dfa660e1d3..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; @@ -139,8 +138,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 +569,6 @@ ImportResult tryToConnectInternal(final AionBlock block, long currTimeSeconds) { // update best block reference if (ret == IMPORTED_BEST) { pubBestBlock = bestBlock; - pubBestTD = summary.getTotalDifficulty(); } // fire block events @@ -602,11 +598,38 @@ ImportResult tryToConnectInternal(final AionBlock block, long currTimeSeconds) { return ret; } + /** + * Creates a new block, if you require more context refer to the blockContext creation method, + * which allows us to add metadata not usually associated with the block itself. + * + * @param parent block + * @param txs to be added into the block + * @param waitUntilBlockTime if we should wait until the specified blockTime before create a new block + * @see #createNewBlock(AionBlock, List, boolean) + * + * @return new block + */ public synchronized AionBlock createNewBlock(AionBlock parent, List txs, boolean waitUntilBlockTime) { + return createNewBlockInternal( + parent, txs, waitUntilBlockTime, System.currentTimeMillis() / THOUSAND_MS).block; + } + + /** + * Creates a new block, adding in context/metadata about the block + * + * @param parent block + * @param txs to be added into the block + * @param waitUntilBlockTime if we should wait until the specified blockTime before create a new block + * @see #createNewBlock(AionBlock, List, boolean) + * + * @return new block + */ + public synchronized BlockContext createNewBlockContext( + AionBlock parent, List txs, boolean waitUntilBlockTime) { return createNewBlockInternal(parent, txs, waitUntilBlockTime, System.currentTimeMillis() / THOUSAND_MS); } - AionBlock createNewBlockInternal(AionBlock parent, List txs, boolean waitUntilBlockTime, + BlockContext createNewBlockInternal(AionBlock parent, List txs, boolean waitUntilBlockTime, long currTimeSeconds) { long time = currTimeSeconds; @@ -658,8 +681,10 @@ AionBlock createNewBlockInternal(AionBlock parent, List txs, bo * Calculate the gas used for the included transactions */ long totalEnergyUsed = 0; + BigInteger totalTransactionFee = BigInteger.ZERO; for (AionTxExecSummary summary : preBlock.summaries) { totalEnergyUsed = totalEnergyUsed + summary.getNrgUsed().longValueExact(); + totalTransactionFee = totalTransactionFee.add(summary.getFee()); } byte[] stateRoot = getRepository().getRoot(); @@ -676,7 +701,11 @@ AionBlock createNewBlockInternal(AionBlock parent, List txs, bo block.seal(preBlock.txs, calcTxTrie(preBlock.txs), stateRoot, logBloom.getData(), calcReceiptsTrie(preBlock.receipts), totalEnergyUsed); - return block; + // derive base block reward + BigInteger baseBlockReward = this.chainConfiguration + .getRewardsCalculator() + .calculateReward(block.getHeader()); + return new BlockContext(block, baseBlockReward, totalTransactionFee); } @Override @@ -688,7 +717,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 +1135,7 @@ public synchronized void close() { @Override public BigInteger getTotalDifficulty() { - return pubBestTD; + return getBestBlock().getCumulativeDifficulty(); } // this method is for the testing purpose @@ -1120,6 +1149,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 +1157,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/AionHub.java b/modAionImpl/src/org/aion/zero/impl/AionHub.java index 88fdf11fa6..0328d86f9f 100644 --- a/modAionImpl/src/org/aion/zero/impl/AionHub.java +++ b/modAionImpl/src/org/aion/zero/impl/AionHub.java @@ -1,25 +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 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: * Aion foundation. - ******************************************************************************/ + */ package org.aion.zero.impl; import org.aion.base.db.IRepository; @@ -259,6 +259,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; @@ -302,6 +303,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) { @@ -338,7 +341,7 @@ private void loadBlockchain() { buildGenesis(genesis); 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/BlockContext.java b/modAionImpl/src/org/aion/zero/impl/BlockContext.java new file mode 100644 index 0000000000..7ccc053dbf --- /dev/null +++ b/modAionImpl/src/org/aion/zero/impl/BlockContext.java @@ -0,0 +1,27 @@ +package org.aion.zero.impl; + +import org.aion.zero.impl.types.AionBlock; + +import java.math.BigInteger; + +/** + * Wraps contextual / metadata about the block that are not + * part of the block itself (not associated with PoW/PoS) + */ +public class BlockContext { + public final AionBlock block; + public final BigInteger baseBlockReward; + public final BigInteger transactionFee; + + public BlockContext(AionBlock block, BigInteger baseBlockReward, BigInteger transactionFee) { + this.block = block; + this.baseBlockReward = baseBlockReward; + this.transactionFee = transactionFee; + } + + public BlockContext(BlockContext context) { + this.block = new AionBlock(context.block); + this.baseBlockReward = context.baseBlockReward; + this.transactionFee = context.transactionFee; + } +} diff --git a/modAionImpl/src/org/aion/zero/impl/StandaloneBlockchain.java b/modAionImpl/src/org/aion/zero/impl/StandaloneBlockchain.java index 02608cb2e1..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,22 +19,24 @@ * * 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.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.core.AccountState; +import org.aion.mcf.core.ImportResult; 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; @@ -43,54 +45,54 @@ 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; import org.aion.zero.impl.valid.AionExtraDataRule; 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 int getPrune() { + return -1; + } - @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 +105,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 +133,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 +154,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 +163,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; } @@ -219,41 +223,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 +269,40 @@ 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) + 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,12 +336,41 @@ 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); } } + + /** for testing */ + public BigInteger getCachedTotalDifficulty() { + return getCacheTD(); + } + + public void assertEqualTotalDifficulty() { + BigInteger tdForHash, tdCached, tdPublic; + + synchronized (this) { + tdForHash = getBlockStore().getTotalDifficultyForHash(getBestBlock().getHash()); + tdCached = getCacheTD(); + tdPublic = getTotalDifficulty(); + } + + assert (tdPublic.equals(tdForHash)); + assert (tdPublic.equals(tdCached)); + } + + public synchronized ImportResult tryToConnect(final AionBlock block) { + ImportResult result = tryToConnectInternal(block, System.currentTimeMillis() / 1000); + + if (result == ImportResult.IMPORTED_BEST) { + BigInteger tdForHash = getBlockStore().getTotalDifficultyForHash(block.getHash()); + assert (getTotalDifficulty().equals(tdForHash)); + assert (getCacheTD().equals(tdForHash)); + } + return result; + } } diff --git a/modAionImpl/src/org/aion/zero/impl/Version.java b/modAionImpl/src/org/aion/zero/impl/Version.java index 270d23f417..32e530e467 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.6"; + public static final String KERNEL_VERSION = "0.2.7"; public static final String REPO_VERSION = "0.1.0"; public static final boolean FORK = true; } diff --git a/modAionImpl/src/org/aion/zero/impl/cli/Cli.java b/modAionImpl/src/org/aion/zero/impl/cli/Cli.java index 685ecb84e1..c7689ecad4 100644 --- a/modAionImpl/src/org/aion/zero/impl/cli/Cli.java +++ b/modAionImpl/src/org/aion/zero/impl/cli/Cli.java @@ -31,6 +31,9 @@ package org.aion.zero.impl.cli; +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStreamReader; import org.aion.base.util.Hex; import org.aion.crypto.ECKey; import org.aion.crypto.ECKeyFac; @@ -241,11 +244,17 @@ private void printHelp() { /** * Creates a new account. * - * @return boolean + * @return true only if the new account was successfully created, otherwise false. */ private boolean createAccount() { - String password = readPassword("Please enter a password: "); - String password2 = readPassword("Please re-enter your password: "); + String password = null, password2 = null; + try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) { + password = readPassword("Please enter a password: ", reader); + password2 = readPassword("Please re-enter your password: ", reader); + } catch (IOException e) { + e.printStackTrace(); + return false; + } if (!password2.equals(password)) { System.out.println("Passwords do not match!"); @@ -289,7 +298,13 @@ private boolean exportPrivateKey(String address) { return false; } - String password = readPassword("Please enter your password: "); + String password = null; + try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) { + password = readPassword("Please enter your password: ", reader); + } catch (IOException e) { + e.printStackTrace(); + return false; + } ECKey key = Keystore.getKey(address, password); if (key != null) { @@ -318,9 +333,21 @@ private boolean importPrivateKey(String privateKey) { } ECKey key = ECKeyFac.inst().fromPrivate(raw); + if (key == null) { + System.out.println("Unable to recover private key." + + "Are you sure you did not import a public key?"); + return false; + } + + String password = null, password2 = null; + try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) { + password = readPassword("Please enter a password: ", reader); + password2 = readPassword("Please re-enter your password: ", reader); + } catch (IOException e) { + e.printStackTrace(); + return false; + } - String password = readPassword("Please enter a password: "); - String password2 = readPassword("Please re-enter your password: "); if (!password2.equals(password)) { System.out.println("Passwords do not match!"); return false; @@ -337,16 +364,49 @@ private boolean importPrivateKey(String privateKey) { } /** - * Reads a password from the console. + * Returns a password after prompting the user to enter it. This method attempts first to read + * user input from a console evironment and if one is not available it instead attempts to read + * from reader. * - * @param prompt String - * @return boolean + * @throws NullPointerException if prompt is null or if console unavailable and reader is null. + * @param prompt The read-password prompt to display to the user. + * @return The user-entered password. */ - public String readPassword(String prompt) { + public String readPassword(String prompt, BufferedReader reader) { + if (prompt == null) { + throw new NullPointerException("readPassword given null prompt."); + } + Console console = System.console(); + if (console == null) { + return readPasswordFromReader(prompt, reader); + } return new String(console.readPassword(prompt)); } + /** + * Returns a password after prompting the user to enter it from reader. + * + * @throws NullPointerException if reader is null. + * @param prompt The read-password prompt to display to the user. + * @param reader The BufferedReader to read input from. + * @return The user-entered password. + */ + private String readPasswordFromReader(String prompt, BufferedReader reader) { + if (reader == null) { + throw new NullPointerException("readPasswordFromReader given null reader."); + } + System.out.println(prompt); + try { + return reader.readLine(); + } catch (IOException e) { + System.err.println("Error reading from BufferedReader: " + reader); + e.printStackTrace(); + System.exit(1); + } + return null; // Make compiler happy; never get here. + } + private RecoveryUtils.Status revertTo(String blockNumber) { // try to convert to long long block; diff --git a/modAionImpl/src/org/aion/zero/impl/core/IAionBlockchain.java b/modAionImpl/src/org/aion/zero/impl/core/IAionBlockchain.java index 0ca3564502..dd740a5f45 100644 --- a/modAionImpl/src/org/aion/zero/impl/core/IAionBlockchain.java +++ b/modAionImpl/src/org/aion/zero/impl/core/IAionBlockchain.java @@ -26,6 +26,7 @@ import org.aion.base.db.IRepository; import org.aion.mcf.core.IBlockchain; +import org.aion.zero.impl.BlockContext; import org.aion.zero.impl.types.AionBlock; import org.aion.zero.impl.types.AionTxInfo; import org.aion.zero.types.A0BlockHeader; @@ -43,6 +44,8 @@ public interface IAionBlockchain AionBlock createNewBlock(AionBlock parent, List transactions, boolean waitUntilBlockTime); + BlockContext createNewBlockContext(AionBlock parent, List transactions, boolean waitUntilBlockTime); + AionBlock getBestBlock(); AionBlock getBlockByNumber(long num); diff --git a/modAionImpl/src/org/aion/zero/impl/db/AionBlockStore.java b/modAionImpl/src/org/aion/zero/impl/db/AionBlockStore.java index 7b6e7968a5..9ee514135b 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,8 +19,7 @@ * * 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); diff --git a/modAionImpl/src/org/aion/zero/impl/sync/TaskShowStatus.java b/modAionImpl/src/org/aion/zero/impl/sync/TaskShowStatus.java index 01aae5e311..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; @@ -78,7 +72,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 = ". + * 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; @@ -181,12 +180,13 @@ public PropStatus processIncomingBlock(final int nodeId, final String _displayId } // notify higher td peers in order to limit the rebroadcast on delay of res status updating - if(result.isBest()){ - BigInteger td = blockchain.getTotalDifficulty(); + if (result.isBest()) { + AionBlock bestBlock = blockchain.getBestBlock(); + BigInteger td = bestBlock.getCumulativeDifficulty(); ResStatus rs = new ResStatus( - blockchain.getBestBlock().getNumber(), + bestBlock.getNumber(), td.toByteArray(), - blockchain.getBestBlockHash(), + bestBlock.getHash(), genesis ); 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 60967a8183..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; @@ -42,22 +41,23 @@ import org.aion.zero.impl.core.IAionBlockchain; import org.aion.zero.impl.sync.Act; import org.aion.zero.impl.sync.msg.ResStatus; +import org.aion.zero.impl.types.AionBlock; import org.slf4j.Logger; /** * 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; @@ -65,25 +65,32 @@ 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 { - cache = new ResStatus(this.chain.getBestBlock().getNumber(), - this.chain.getTotalDifficulty().toByteArray(), this.chain.getBestBlockHash(), - this.genesisHash); + AionBlock bestBlock = chain.getBestBlock(); + cache = + new ResStatus( + bestBlock.getNumber(), + bestBlock.getCumulativeDifficulty().toByteArray(), + bestBlock.getHash(), + this.genesisHash); } catch (Exception e) { e.printStackTrace(); } @@ -92,9 +99,7 @@ public void receive(int _nodeIdHashcode, String _displayId, byte[] _msg) { } 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/sync/msg/BroadcastTx.java b/modAionImpl/src/org/aion/zero/impl/sync/msg/BroadcastTx.java index ed582d0944..9e583a888e 100644 --- a/modAionImpl/src/org/aion/zero/impl/sync/msg/BroadcastTx.java +++ b/modAionImpl/src/org/aion/zero/impl/sync/msg/BroadcastTx.java @@ -37,25 +37,21 @@ import java.util.ArrayList; import java.util.List; - import org.aion.base.type.ITransaction; import org.aion.p2p.Ctrl; import org.aion.p2p.Msg; import org.aion.p2p.Ver; -import org.aion.rlp.RLPElement; -import org.aion.zero.impl.sync.Act; import org.aion.rlp.RLP; +import org.aion.rlp.RLPElement; import org.aion.rlp.RLPList; +import org.aion.zero.impl.sync.Act; -/** - * @author chris - * - */ +/** @author chris */ public final class BroadcastTx extends Msg { - private final List txl; + private final List txl; - public BroadcastTx(final List _txl) { + public BroadcastTx(final List _txl) { super(Ver.V0, Ctrl.SYNC, Act.BROADCAST_TX); this.txl = _txl; } @@ -66,7 +62,7 @@ public BroadcastTx(final List _txl) { @Override public byte[] encode() { List encodedTx = new ArrayList<>(); - for(ITransaction tx : txl) { + for (ITransaction tx : txl) { encodedTx.add(tx.getEncoded()); } 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..bba0361697 100644 --- a/modAionImpl/src/org/aion/zero/impl/sync/msg/ResStatus.java +++ b/modAionImpl/src/org/aion/zero/impl/sync/msg/ResStatus.java @@ -88,6 +88,13 @@ public byte[] getBestHash() { return this.bestHash; } + /** + * @return byte[] + */ + public byte[] getGenesisHash() { + return this.genesisHash; + } + /** * @return byte[] */ diff --git a/modAionImpl/src/org/aion/zero/impl/tx/A0TxTask.java b/modAionImpl/src/org/aion/zero/impl/tx/A0TxTask.java index eea8856fca..ab25525938 100644 --- a/modAionImpl/src/org/aion/zero/impl/tx/A0TxTask.java +++ b/modAionImpl/src/org/aion/zero/impl/tx/A0TxTask.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* ****************************************************************************** * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -19,23 +19,24 @@ * * Contributors: * Aion foundation. - * + * ******************************************************************************/ package org.aion.zero.impl.tx; import java.util.List; - +import org.aion.mcf.tx.AbstractTxTask; import org.aion.p2p.IP2pMgr; +import org.aion.p2p.Msg; import org.aion.zero.types.AionTransaction; public class A0TxTask extends AbstractTxTask { - public A0TxTask(AionTransaction _tx, IP2pMgr _p2pMgr) { - super(_tx, _p2pMgr); + public A0TxTask(AionTransaction _tx, IP2pMgr _p2pMgr, Msg _msg) { + super(_tx, _p2pMgr, _msg); } - public A0TxTask(List _tx, IP2pMgr _p2pMgr) { - super(_tx, _p2pMgr); + public A0TxTask(List _tx, IP2pMgr _p2pMgr, Msg _msg) { + super(_tx, _p2pMgr, _msg); } } diff --git a/modAionImpl/src/org/aion/zero/impl/tx/TxBroadcaster.java b/modAionImpl/src/org/aion/zero/impl/tx/TxBroadcaster.java index 015d14c4f3..4730f2ebaa 100644 --- a/modAionImpl/src/org/aion/zero/impl/tx/TxBroadcaster.java +++ b/modAionImpl/src/org/aion/zero/impl/tx/TxBroadcaster.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.tx; @@ -27,20 +27,19 @@ import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Future; - +import org.aion.mcf.tx.AbstractTxTask; import org.aion.mcf.types.AbstractTransaction; @SuppressWarnings("rawtypes") public class TxBroadcaster { - private TxBroadcaster() { - } + private TxBroadcaster() {} private static class Holder { static final TxBroadcaster INSTANCE = new TxBroadcaster(); } - static public TxBroadcaster getInstance() { + public static TxBroadcaster getInstance() { return Holder.INSTANCE; } diff --git a/modAionImpl/src/org/aion/zero/impl/tx/TxCollector.java b/modAionImpl/src/org/aion/zero/impl/tx/TxCollector.java index 348c316333..60d7d78b9b 100644 --- a/modAionImpl/src/org/aion/zero/impl/tx/TxCollector.java +++ b/modAionImpl/src/org/aion/zero/impl/tx/TxCollector.java @@ -1,9 +1,5 @@ package org.aion.zero.impl.tx; -import org.aion.p2p.IP2pMgr; -import org.aion.zero.types.AionTransaction; -import org.slf4j.Logger; - import java.util.ArrayList; import java.util.List; import java.util.concurrent.Executors; @@ -13,14 +9,17 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicLong; import java.util.concurrent.locks.ReentrantLock; +import org.aion.p2p.IP2pMgr; +import org.aion.zero.impl.sync.msg.BroadcastTx; +import org.aion.zero.types.AionTransaction; +import org.slf4j.Logger; /** * Aion Tx Collector * - * Rather than broadcast tx out as soon as they come in; the TxCollector buffers tx and broadcasts them out in batches - * + *

Rather than broadcast tx out as soon as they come in; the TxCollector buffers tx and + * broadcasts them out in batches */ - public class TxCollector { // Average TxSize bytes @@ -42,30 +41,29 @@ public class TxCollector { private ReentrantLock broadcastLock = new ReentrantLock(); private Logger LOG; - public TxCollector(IP2pMgr p2p, final Logger logTx) { this.p2p = p2p; this.LOG = logTx; - // Leave unbounded for now, may need to restrict queue size and drop tx until able to process tx + // Leave unbounded for now, may need to restrict queue size and drop tx until able to + // process tx transactionQueue = new LinkedBlockingQueue<>(); ScheduledExecutorService broadcastTxExec = Executors.newSingleThreadScheduledExecutor(); int broadcastLoop = 1; int initDelay = 10; - broadcastTxExec.scheduleAtFixedRate(this::broadcastTransactionsTask, initDelay, broadcastLoop, TimeUnit.SECONDS); - + broadcastTxExec.scheduleAtFixedRate( + this::broadcastTransactionsTask, initDelay, broadcastLoop, TimeUnit.SECONDS); } - public TxCollector(IP2pMgr p2pMgr) { - } + public TxCollector(IP2pMgr p2pMgr) {} /* - * Submit a batch list of tx + * Submit a batch list of tx */ public void submitTx(List txs) { // addAll potentially dangerous for blocking queue, add manually - for(AionTransaction tx : txs) { + for (AionTransaction tx : txs) { try { transactionQueue.offer(tx, offerTimeout, TimeUnit.MILLISECONDS); if (queueSizeBytes.addAndGet(tx.getEncoded().length) >= this.maxTxBufferSize) @@ -98,18 +96,17 @@ private void broadcastTx() { try { // Check tx queue has not already been emptied - if(transactionQueue.isEmpty()) - return; + if (transactionQueue.isEmpty()) return; // Grab everything in the queue transactions = new ArrayList<>(transactionQueue.size()); transactionQueue.drainTo(transactions); - //Reduce counter - for(AionTransaction a : transactions) { + // Reduce counter + for (AionTransaction a : transactions) { queueSizeBytes.addAndGet(a.getEncoded().length * -1); } - }finally { + } finally { broadcastLock.unlock(); } @@ -121,7 +118,9 @@ private void broadcastTx() { LOG.trace("TxCollector.broadcastTx Tx#{}", transactions.size()); } - TxBroadcaster.getInstance().submitTransaction(new A0TxTask(transactions, this.p2p)); + TxBroadcaster.getInstance() + .submitTransaction( + new A0TxTask(transactions, this.p2p, new BroadcastTx(transactions))); } } @@ -130,9 +129,8 @@ private void broadcastTx() { */ private void broadcastTransactionsTask() { int maxDelay = 1000; - if(System.currentTimeMillis() - this.lastBroadcast.get() < maxDelay) - return; + if (System.currentTimeMillis() - this.lastBroadcast.get() < maxDelay) return; broadcastTx(); } -} \ No newline at end of file +} diff --git a/modAionImpl/src/org/aion/zero/impl/types/AionBlock.java b/modAionImpl/src/org/aion/zero/impl/types/AionBlock.java index 357a75472b..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; @@ -59,6 +57,8 @@ public class AionBlock extends AbstractBlock imp private Trie txsState; + private BigInteger td = null; + /* Constructors */ private AionBlock() { } @@ -228,9 +228,11 @@ public BigInteger getDifficultyBI() { } public BigInteger getCumulativeDifficulty() { - // TODO: currently returning incorrect total difficulty - parseRLP(); - return new BigInteger(1, this.header.getDifficulty()); + if (td == null) { + return BigInteger.ZERO; + } else { + return td; + } } public long getTimestamp() { @@ -442,4 +444,8 @@ public static AionBlock createBlockFromNetwork(A0BlockHeader header, byte[] body return block; } + + public void setCumulativeDifficulty(BigInteger _td){ + td = _td; + } } diff --git a/modAionImpl/test/org/aion/cli/CliTest.java b/modAionImpl/test/org/aion/cli/CliTest.java index faf6b864f1..0f0ecc774c 100644 --- a/modAionImpl/test/org/aion/cli/CliTest.java +++ b/modAionImpl/test/org/aion/cli/CliTest.java @@ -1,6 +1,5 @@ package org.aion.cli; -import org.aion.base.type.Address; import org.aion.mcf.account.Keystore; import org.aion.base.util.Hex; import org.aion.crypto.ECKey; @@ -13,36 +12,51 @@ import static org.junit.Assert.assertEquals; import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.doReturn; -import org.aion.zero.impl.cli.Cli;; +import org.aion.zero.impl.cli.Cli; public class CliTest { - private Cli cli; + private static final Cli cli = Mockito.spy(new Cli()); + /** + * Sets up a spy Cli class that returns the String "password" when the cli.readPassword() + * is called using any two params. + */ @Before public void setup() { - cli = Mockito.spy(new Cli()); - doReturn("password").when(cli).readPassword(any()); + doReturn("password").when(cli).readPassword(any(), any()); } + /** + * Tests the -h argument does not fail. + */ @Test public void testHelp() { String args[] = {"-h"}; assertEquals(0, cli.call(args, CfgAion.inst())); } + /** + * Tests the -a create arguments do not fail. + */ @Test public void testCreateAccount() { String args[] = {"-a", "create"}; assertEquals(0, cli.call(args, CfgAion.inst())); } + /** + * Tests the -a list arguments do not fail. + */ @Test public void testListAccounts() { String args[] = {"-a", "list"}; assertEquals(0, cli.call(args, CfgAion.inst())); } + /** + * Tests the -a export arguments do not fail on a valid account. + */ @Test public void testExportPrivateKey() { String account = Keystore.create("password"); @@ -51,6 +65,22 @@ public void testExportPrivateKey() { assertEquals(0, cli.call(args, CfgAion.inst())); } + /** + * Tests the -a export arguments fail when the suupplied account is a proper substring of a + * valid account. + */ + @Test + public void testExportSubstringOfAccount() { + String account = Keystore.create("password"); + String substrAcc = account.substring(1); + + String[] args = {"-a", "export", substrAcc}; + assertEquals(1, cli.call(args, CfgAion.inst())); + } + + /** + * Tests the -a import arguments do not fail on a fail import key. + */ @Test public void testImportPrivateKey() { ECKey key = ECKeyFac.inst().create(); @@ -59,6 +89,20 @@ public void testImportPrivateKey() { assertEquals(0, cli.call(args, CfgAion.inst())); } + /** + * Tests the -a import arguments fail when a non-private key is supplied. + */ + @Test + public void testImportNonPrivateKey() { + String account = Keystore.create("password"); + + String[] args = {"-a", "import", account}; + assertEquals(1, cli.call(args, CfgAion.inst())); + } + + /** + * Tests the -a import arguments do not fail when a valid private key is supplied. + */ @Test public void testImportPrivateKey2() { ECKey key = ECKeyFac.inst().create(); @@ -75,9 +119,12 @@ public void testImportPrivateKey2() { System.out.println("Imported private key: " + Hex.toHexString(key2.getPrivKeyBytes())); } + /** + * Tests the -a import arguments fail given an invalid private key. + */ @Test public void testImportPrivateKeyWrong() { String[] args = {"-a", "import", "hello"}; assertEquals(1, cli.call(args, CfgAion.inst())); } -} +} \ No newline at end of file diff --git a/modAionImpl/test/org/aion/zero/impl/BlockchainForkingTest.java b/modAionImpl/test/org/aion/zero/impl/BlockchainForkingTest.java index 180d470e7b..d5e247c35e 100644 --- a/modAionImpl/test/org/aion/zero/impl/BlockchainForkingTest.java +++ b/modAionImpl/test/org/aion/zero/impl/BlockchainForkingTest.java @@ -229,45 +229,49 @@ public void testSecondBlockHigherDifficultyFork() { // generate three blocks, on the third block we get flexiblity // for what difficulties can occur - AionBlock firstBlock = bc.createNewBlockInternal(bc.getGenesis(), Collections.emptyList(), true, time / 1000L); - assertThat(bc.tryToConnectInternal(firstBlock, (time += 10))).isEqualTo(ImportResult.IMPORTED_BEST); + 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 - AionBlock secondBlock = bc.createNewBlockInternal(firstBlock, Collections.emptyList(), true, time / 1000L); - assertThat(bc.tryToConnectInternal(secondBlock, time += 10)).isEqualTo(ImportResult.IMPORTED_BEST); + 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 - AionBlock fasterSecondBlock = bc.createNewBlockInternal(secondBlock, Collections.emptyList(), true, time / 1000L); - AionBlock slowerSecondBlock = new AionBlock(fasterSecondBlock); + 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, time + 100)).isEqualTo(ImportResult.IMPORTED_BEST); + assertThat(bc.tryToConnectInternal(fasterSecondBlock.block, time + 100)).isEqualTo(ImportResult.IMPORTED_BEST); assertThat(bc.tryToConnectInternal(slowerSecondBlock, time + 100)).isEqualTo(ImportResult.IMPORTED_NOT_BEST); // represents the amount of time we would have waited for the lower TD block to come in long timeDelta = 1000L; // loweredDifficulty = bi - bi / 1024 - BigInteger loweredDifficulty = BIUtil.max(secondBlock + BigInteger loweredDifficulty = BIUtil.max( + secondBlock.block .getDifficultyBI() - .subtract(secondBlock.getDifficultyBI().divide(BigInteger.valueOf(1024L))), BigInteger.valueOf(16L)); + .subtract(secondBlock.block.getDifficultyBI().divide(BigInteger.valueOf(1024L))), BigInteger.valueOf(16L)); time += 100; - AionBlock fastBlockDescendant = bc.createNewBlockInternal(fasterSecondBlock, Collections.emptyList(), true, time / 1000L); - AionBlock slowerBlockDescendant = bc.createNewBlockInternal(slowerSecondBlock, Collections.emptyList(), true, time / 1000L + 100 + 1); + 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.getDifficultyBI()).isGreaterThan(slowerBlockDescendant.getDifficultyBI()); - System.out.println("faster block descendant TD: " + fastBlockDescendant.getDifficultyBI()); - System.out.println("slower block descendant TD: " + slowerBlockDescendant.getDifficultyBI()); + 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, time)).isEqualTo(ImportResult.IMPORTED_BEST); - assertThat(bc.tryToConnectInternal(fastBlockDescendant, time)).isEqualTo(ImportResult.IMPORTED_BEST); + assertThat(bc.tryToConnectInternal(slowerBlockDescendant.block, time)).isEqualTo(ImportResult.IMPORTED_BEST); + assertThat(bc.tryToConnectInternal(fastBlockDescendant.block, time)).isEqualTo(ImportResult.IMPORTED_BEST); - assertThat(bc.getBestBlock()).isEqualTo(fastBlockDescendant); + assertThat(bc.getBestBlock()).isEqualTo(fastBlockDescendant.block); } } diff --git a/modAionImpl/test/org/aion/zero/impl/BlockchainIntegrationTest.java b/modAionImpl/test/org/aion/zero/impl/BlockchainIntegrationTest.java index 0edcc0617a..8f7fbb9bca 100644 --- a/modAionImpl/test/org/aion/zero/impl/BlockchainIntegrationTest.java +++ b/modAionImpl/test/org/aion/zero/impl/BlockchainIntegrationTest.java @@ -42,6 +42,7 @@ import org.aion.mcf.core.ImportResult; import org.aion.crypto.ECKey; import org.aion.crypto.HashUtil; +import org.aion.zero.impl.blockchain.ChainConfiguration; import org.aion.zero.impl.types.AionBlock; import org.aion.zero.types.AionTransaction; import org.junit.Ignore; @@ -292,4 +293,37 @@ public void testDisconnection() { assertThat(newBlock.getParentHash()).isNotEqualTo(storedBlock1.getHash()); assertThat(newBlock.getParentHash()).isEqualTo(block.getHash()); } + + + @Test + public void testBlockContextCreation() { + StandaloneBlockchain.Bundle bundle = (new StandaloneBlockchain.Builder()) + .withValidatorConfiguration("simple") + .withDefaultAccounts() + .build(); + StandaloneBlockchain bc = bundle.bc; + + BlockContext context = bc.createNewBlockContext( + bc.getBestBlock(), Collections.emptyList(), false); + + ChainConfiguration configuration = new ChainConfiguration(); + + // check some basic fields match first + assertThat(context.block).isNotNull(); + assertThat(context.baseBlockReward).isNotNull(); + assertThat(context.transactionFee).isNotNull(); + + // no transaction so fee should be zero + assertThat(context.transactionFee).isEqualTo(BigInteger.ZERO); + Address beneficiary = context.block.getCoinbase(); + + ImportResult result = bc.tryToConnect(context.block); + // check that the correct amount was stored + assertThat(result).isEqualTo(ImportResult.IMPORTED_BEST); + assertThat(bc.getRepository().getBalance(beneficiary)).isEqualTo(context.baseBlockReward); + + // check that the correct amount was calculated + assertThat(configuration.getRewardsCalculator() + .calculateReward(context.block.getHeader())).isEqualTo(context.baseBlockReward); + } } diff --git a/modAionImpl/test/org/aion/zero/impl/GenesisSpecificationTest.java b/modAionImpl/test/org/aion/zero/impl/GenesisSpecificationTest.java index 2082f12375..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; @@ -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); diff --git a/modAionImpl/test/org/aion/zero/impl/db/AionBlockchainImplConcurrencyTest.java b/modAionImpl/test/org/aion/zero/impl/db/AionBlockchainImplConcurrencyTest.java new file mode 100644 index 0000000000..16d421304a --- /dev/null +++ b/modAionImpl/test/org/aion/zero/impl/db/AionBlockchainImplConcurrencyTest.java @@ -0,0 +1,475 @@ +/* ****************************************************************************** + * 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.db; + +import static com.google.common.truth.Truth.assertThat; +import static org.junit.Assert.assertTrue; + +import java.math.BigInteger; +import java.util.*; +import java.util.concurrent.*; +import org.aion.log.AionLoggerFactory; +import org.aion.mcf.core.ImportResult; +import org.aion.zero.impl.StandaloneBlockchain; +import org.aion.zero.impl.types.AionBlock; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Test; + +/** @author Alexandra Roatis */ +public class AionBlockchainImplConcurrencyTest { + + private static final int CONCURRENT_THREADS_PER_TYPE = 30; + private static final int MAIN_CHAIN_FREQUENCY = 5; + private static final int TIME_OUT = 100; // in seconds + private static final boolean DISPLAY_MESSAGES = false; + + private static StandaloneBlockchain testChain; + private static StandaloneBlockchain sourceChain; + private static List knownBlocks = new ArrayList<>(); + + @BeforeClass + public static void setup() { + Map cfg = new HashMap<>(); + cfg.put("DB", "ERROR"); + + AionLoggerFactory.init(cfg); + + // build a blockchain with CONCURRENT_THREADS_PER_TYPE blocks + StandaloneBlockchain.Builder builder = new StandaloneBlockchain.Builder(); + StandaloneBlockchain.Bundle bundle = builder.withValidatorConfiguration("simple").build(); + + testChain = bundle.bc; + + builder = new StandaloneBlockchain.Builder(); + sourceChain = builder.withValidatorConfiguration("simple").build().bc; + + generateBlocks(); + } + + private static void generateBlocks() { + System.out.format("%nGenerating %d input blocks...%n", CONCURRENT_THREADS_PER_TYPE); + + Random rand = new Random(); + AionBlock parent, block, mainChain; + mainChain = sourceChain.getGenesis(); + knownBlocks.add(mainChain); + + for (int i = 0; i < CONCURRENT_THREADS_PER_TYPE; i++) { + + // ensuring that we add to the main chain at least every MAIN_CHAIN_FREQUENCY block + if (i % MAIN_CHAIN_FREQUENCY == 0) { + // the parent will be the main chain + parent = mainChain; + } else { + // the parent is a random already imported block + parent = knownBlocks.get(rand.nextInt(knownBlocks.size())); + } + + block = sourceChain.createNewBlock(parent, Collections.emptyList(), true); + block.setExtraData(String.valueOf(i).getBytes()); + + ImportResult result = sourceChain.tryToConnect(block); + knownBlocks.add(block); + if (result == ImportResult.IMPORTED_BEST) { + mainChain = block; + } + + if (DISPLAY_MESSAGES) { + System.out.format( + "Created block with hash: %s, number: %6d, extra data: %6s, import status: %20s %n", + block.getShortHash(), + block.getNumber(), + new String(block.getExtraData()), + result.toString()); + } + } + + // all blocks except the genesis will be imported by the other chain + knownBlocks.remove(sourceChain.getGenesis()); + } + + @AfterClass + public static void teardown() { + testChain.close(); + sourceChain.close(); + } + + /** + * Adds a new thread for importing an already known block. + * + * @param _threads list of threads to be executed; the current thread will be added to this list + * @param _chain the blockchain where the blocks will be imported + * @param _block the block to import + */ + private void addThread_tryToConnect( + List _threads, StandaloneBlockchain _chain, AionBlock _block) { + _threads.add( + () -> { + testChain.assertEqualTotalDifficulty(); + // importing the given block + ImportResult result = _chain.tryToConnect(_block); + testChain.assertEqualTotalDifficulty(); + + if (DISPLAY_MESSAGES) { + System.out.format( + "Import block with hash: %s, number: %6d, extra data: %6s, status: %20s in thread: %20s %n", + _block.getShortHash(), + _block.getNumber(), + new String(_block.getExtraData()), + result.toString(), + Thread.currentThread().getName()); + } + + // checking total difficulty + if (result == ImportResult.IMPORTED_BEST + || result == ImportResult.IMPORTED_NOT_BEST) { + AionBlockStore store = _chain.getBlockStore(); + + BigInteger tdFromStore = store.getTotalDifficultyForHash(_block.getHash()); + BigInteger tdCalculated = + store.getTotalDifficultyForHash(_block.getParentHash()) + .add(_block.getDifficultyBI()); + + assertThat(tdFromStore).isEqualTo(tdCalculated); + + if (result == ImportResult.IMPORTED_BEST) { + // can't check for equality since other blocks may have already been + // imported + assertThat(store.getTotalDifficulty()).isAtLeast(tdFromStore); + } + } + }); + } + + /** + * Adds a new thread for importing a block from the given queue. + * + * @param _threads list of threads to be executed; the current thread will be added to this list + * @param _chain the blockchain where the blocks will be imported + * @param _queue a queue containing new blocks + * @param _imported a list of blocks that have been imported; blocks successfully imported are + * added to this list + */ + private void addThread_tryToConnect( + List _threads, + StandaloneBlockchain _chain, + ConcurrentLinkedQueue _queue, + ConcurrentLinkedQueue _imported) { + _threads.add( + () -> { + + // get next block from queue + AionBlock _block = _queue.poll(); + + if (_block != null) { + + testChain.assertEqualTotalDifficulty(); + // importing the given block + ImportResult result = _chain.tryToConnect(_block); + testChain.assertEqualTotalDifficulty(); + + if (DISPLAY_MESSAGES) { + System.out.format( + "Import block with hash: %s, number: %6d, extra data: %6s, status: %20s in thread: %20s (from queue)%n", + _block.getShortHash(), + _block.getNumber(), + new String(_block.getExtraData()), + result.toString(), + Thread.currentThread().getName()); + } + + // checking total difficulty + if (result == ImportResult.IMPORTED_BEST + || result == ImportResult.IMPORTED_NOT_BEST) { + AionBlockStore store = _chain.getBlockStore(); + + BigInteger tdFromStore = + store.getTotalDifficultyForHash(_block.getHash()); + BigInteger tdCalculated = + store.getTotalDifficultyForHash(_block.getParentHash()) + .add(_block.getDifficultyBI()); + + assertThat(tdFromStore).isEqualTo(tdCalculated); + + if (result == ImportResult.IMPORTED_BEST) { + // can't check for equality since other blocks may have already been + // imported + assertThat(store.getTotalDifficulty()).isAtLeast(tdFromStore); + } + + // save the block for later comparison + _imported.add(_block); + } + } else { + if (DISPLAY_MESSAGES) { + System.out.format( + "%62sNo block in queue. Skipping import in thread: %20s %n", + " ", Thread.currentThread().getName()); + } + } + }); + } + + /** + * Adds a new thread for creating a new block with a parent among the already known blocks. + * + * @param _threads list of threads to be executed; the current thread will be added to this list + * @param _chain the blockchain where the blocks will be imported + * @param _parent the block that will be the parent of the newly created block + * @param _id number used for identifying the block; added as extra data + * @param _queue a queue for storing the new blocks; to be imported by a separate thread + */ + private void addThread_createNewBlock( + List _threads, + StandaloneBlockchain _chain, + AionBlock _parent, + int _id, + ConcurrentLinkedQueue _queue) { + _threads.add( + () -> { + + // creating block only if parent already imported + if (_chain.isBlockExist(_parent.getHash())) { + + testChain.assertEqualTotalDifficulty(); + AionBlock block = + _chain.createNewBlock(_parent, Collections.emptyList(), true); + block.setExtraData(String.valueOf(_id).getBytes()); + testChain.assertEqualTotalDifficulty(); + + // checking if the new block was already imported + if (!_chain.isBlockExist(block.getHash())) { + // still adding this block + _queue.add(block); + + if (DISPLAY_MESSAGES) { + System.out.format( + "Create block with hash: %s, number: %6d, extra data: %6s, parent: %20s in thread: %20s %n", + block.getShortHash(), + block.getNumber(), + new String(block.getExtraData()), + _parent.getShortHash(), + Thread.currentThread().getName()); + } + } else { + if (DISPLAY_MESSAGES) { + System.out.format( + "%57sBlock already imported. Skipping create in thread: %20s %n", + " ", Thread.currentThread().getName()); + } + } + } else { + if (DISPLAY_MESSAGES) { + System.out.format( + "%60sParent not imported. Skipping create in thread: %20s %n", + " ", Thread.currentThread().getName()); + } + } + }); + } + + /** + * Adds a new thread for creating a new block with a parent among the already known blocks. + * + * @param _threads list of threads to be executed; the current thread will be added to this list + * @param _chain the blockchain where the blocks will be imported + * @param _id number used for identifying the block; added as extra data + * @param _queue a queue for storing the new blocks; to be imported by a separate thread + * @param _startHeight blocks are created only if a minimum height is reached + */ + private void addThread_createNewBlock( + List _threads, + StandaloneBlockchain _chain, + int _id, + ConcurrentLinkedQueue _queue, + int _startHeight) { + _threads.add( + () -> { + + // parent will be main chain block + AionBlock _parent = _chain.getBestBlock(); + + if (_parent.getNumber() >= _startHeight) { + + testChain.assertEqualTotalDifficulty(); + AionBlock block = + _chain.createNewBlock(_parent, Collections.emptyList(), true); + block.setExtraData(String.valueOf(_id).getBytes()); + testChain.assertEqualTotalDifficulty(); + + // still adding this block + _queue.add(block); + + if (DISPLAY_MESSAGES) { + System.out.format( + "Create block with hash: %s, number: %6d, extra data: %6s, parent: %20s in thread: %20s (using getBestBlock) %n", + block.getShortHash(), + block.getNumber(), + new String(block.getExtraData()), + _parent.getShortHash(), + Thread.currentThread().getName()); + } + } else { + if (DISPLAY_MESSAGES) { + System.out.format( + "%51sParent not at minimum height. Skipping create in thread: %20s %n", + " ", Thread.currentThread().getName()); + } + } + }); + } + + @Test + public void testConcurrent() throws InterruptedException { + List threads = new ArrayList<>(); + + int start = (int) sourceChain.getBestBlock().getNumber() - 1; + ConcurrentLinkedQueue queue = new ConcurrentLinkedQueue<>(); + ConcurrentLinkedQueue imported = new ConcurrentLinkedQueue<>(); + + int blockCount = CONCURRENT_THREADS_PER_TYPE + 1; + for (AionBlock blk : knownBlocks) { + // connect to known blocks + addThread_tryToConnect(threads, testChain, blk); + + // add new blocks with known parent + addThread_createNewBlock(threads, testChain, blk, blockCount, queue); + blockCount++; + + // add new blocks with best block parent + addThread_createNewBlock(threads, testChain, blockCount, queue, start); + blockCount++; + + // connect to new blocks + addThread_tryToConnect(threads, testChain, queue, imported); + } + + // run threads while not at minimum height + long height, targetHeight = sourceChain.getBestBlock().getNumber() + MAIN_CHAIN_FREQUENCY; + boolean done = false; + + while (!done) { + System.out.format("%nRunning the %d generated threads...%n", threads.size()); + + assertConcurrent("Testing tryToConnect(...) ", threads, TIME_OUT); + + // checking height + height = testChain.getBestBlock().getNumber(); + done = height >= targetHeight; + System.out.format("Current height = %d. Target height = %d.%n", height, targetHeight); + } + + // adding new blocks to source chain + System.out.format("%nAdding new blocks to source chain for testing...%n"); + AionBlock block = imported.poll(); + + while (block != null) { + ImportResult result = sourceChain.tryToConnect(block); + knownBlocks.add(block); + + if (DISPLAY_MESSAGES) { + System.out.format( + "Importing block with hash: %s, number: %6d, extra data: %6s, status: %20s%n", + block.getShortHash(), + block.getNumber(), + new String(block.getExtraData()), + result.toString()); + } + block = imported.poll(); + } + + // comparing total diff for the two chains + assertThat(testChain.getTotalDifficulty()).isEqualTo(sourceChain.getTotalDifficulty()); + assertThat(testChain.getCachedTotalDifficulty()) + .isEqualTo(sourceChain.getCachedTotalDifficulty()); + testChain.assertEqualTotalDifficulty(); + + AionBlockStore sourceStore = sourceChain.getBlockStore(); + + // comparing total diff for each block of the two chains + for (AionBlock blk : knownBlocks) { + assertThat(testChain.getBlockStore().getTotalDifficultyForHash(blk.getHash())) + .isEqualTo(sourceStore.getTotalDifficultyForHash(blk.getHash())); + } + } + + /** + * 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()); + } +} diff --git a/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java b/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java index 3315d997e0..5b6fe0d228 100644 --- a/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java +++ b/modAionImpl/test/org/aion/zero/impl/sync/BlockPropagationTest.java @@ -1,5 +1,11 @@ package org.aion.zero.impl.sync; +import static com.google.common.truth.Truth.assertThat; + +import java.math.BigInteger; +import java.nio.channels.SocketChannel; +import java.util.*; +import java.util.concurrent.atomic.AtomicInteger; import org.aion.crypto.ECKey; import org.aion.crypto.ECKeyFac; import org.aion.crypto.HashUtil; @@ -9,16 +15,7 @@ import org.aion.zero.impl.types.AionBlock; import org.junit.Test; -import java.math.BigInteger; -import java.nio.channels.SocketChannel; -import java.util.*; -import java.util.concurrent.atomic.AtomicInteger; - -import static com.google.common.truth.Truth.assertThat; - -/** - * Unit tests for block propagation - */ +/** Unit tests for block propagation */ public class BlockPropagationTest { private static class NodeMock implements INode { @@ -51,9 +48,9 @@ public BigInteger getTotalDifficulty() { return BigInteger.ZERO; } - @Override public void updateStatus(long _bestBlockNumber, byte[] _bestBlockHash, - BigInteger _totalDifficulty) { - } + @Override + public void updateStatus( + long _bestBlockNumber, byte[] _bestBlockHash, BigInteger _totalDifficulty) {} @Override public byte[] getIp() { @@ -100,14 +97,10 @@ public Map getActiveNodes() { } @Override - public void shutdown() { - - } + public void shutdown() {} @Override - public void run() { - - } + public void run() {} @Override public List versions() { @@ -120,14 +113,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() { @@ -135,10 +124,7 @@ public INode getRandom() { } @Override - public void send(int _id, String s, Msg _msg) { - - } - + public void send(int _id, String s, Msg _msg) {} @Override public boolean isShowLog() { @@ -146,8 +132,7 @@ public boolean isShowLog() { } @Override - public void closeSocket(SocketChannel _sc, String _reason) { - } + public void closeSocket(SocketChannel _sc, String _reason) {} @Override public int getSelfIdHash() { @@ -163,19 +148,19 @@ 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(); + StandaloneBlockchain.Bundle bundle = + new StandaloneBlockchain.Builder() + .withValidatorConfiguration("simple") + .withDefaultAccounts(accounts) + .build(); - AionBlock block = bundle.bc.createNewBlock(bundle.bc.getGenesis(), Collections.EMPTY_LIST, true); + AionBlock block = + bundle.bc.createNewBlock(bundle.bc.getGenesis(), Collections.EMPTY_LIST, true); assertThat(block.getNumber()).isEqualTo(1); byte[] sender = HashUtil.h256("node1".getBytes()); @@ -184,25 +169,30 @@ public void testBlockPropagationReceiver() { Map node = new HashMap<>(); 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"); - } - }; - - StandaloneBlockchain.Bundle anotherBundle = 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); - - assertThat(handler.processIncomingBlock(senderMock.getIdHash(), "test", block)).isEqualTo(BlockPropagationHandler.PropStatus.CONNECTED); + P2pMock p2pMock = + 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(); + + BlockPropagationHandler handler = + 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); } // given two peers, and one sends you a new block, propagate to the other @@ -210,12 +200,14 @@ public void send(int _nodeId, String s, Msg _msg) { public void testPropagateBlockToPeer() { List accounts = generateDefaultAccounts(); - StandaloneBlockchain.Bundle bundle = new StandaloneBlockchain.Builder() - .withValidatorConfiguration("simple") - .withDefaultAccounts(accounts) - .build(); + StandaloneBlockchain.Bundle bundle = + new StandaloneBlockchain.Builder() + .withValidatorConfiguration("simple") + .withDefaultAccounts(accounts) + .build(); - AionBlock block = bundle.bc.createNewBlock(bundle.bc.getGenesis(), Collections.EMPTY_LIST, true); + AionBlock block = + bundle.bc.createNewBlock(bundle.bc.getGenesis(), Collections.EMPTY_LIST, true); assertThat(block.getNumber()).isEqualTo(1); byte[] sender = HashUtil.h256("node1".getBytes()); @@ -229,19 +221,21 @@ public void testPropagateBlockToPeer() { node.put(2, receiverMock); 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(); - } - }; - - StandaloneBlockchain.Bundle anotherBundle = new StandaloneBlockchain.Builder() - .withValidatorConfiguration("simple") - .withDefaultAccounts(accounts) - .build(); + 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(); + } + }; + + StandaloneBlockchain.Bundle anotherBundle = + 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()); @@ -250,14 +244,17 @@ public void send(int _nodeId, String s, Msg _msg) { AionBlock bestBlock = bundle.bc.getBestBlock(); 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); + BlockPropagationHandler handler = + 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); + assertThat(handler.processIncomingBlock(senderMock.getIdHash(), "test", block)) + .isEqualTo(BlockPropagationHandler.PropStatus.PROP_CONNECTED); assertThat(times.get()).isEqualTo(1); } @@ -265,12 +262,14 @@ public void send(int _nodeId, String s, Msg _msg) { public void testIgnoreSameBlock() { List accounts = generateDefaultAccounts(); - StandaloneBlockchain.Bundle bundle = new StandaloneBlockchain.Builder() - .withValidatorConfiguration("simple") - .withDefaultAccounts(accounts) - .build(); + StandaloneBlockchain.Bundle bundle = + new StandaloneBlockchain.Builder() + .withValidatorConfiguration("simple") + .withDefaultAccounts(accounts) + .build(); - AionBlock block = bundle.bc.createNewBlock(bundle.bc.getGenesis(), Collections.EMPTY_LIST, true); + AionBlock block = + bundle.bc.createNewBlock(bundle.bc.getGenesis(), Collections.EMPTY_LIST, true); assertThat(block.getNumber()).isEqualTo(1); byte[] sender = HashUtil.h256("node1".getBytes()); @@ -284,31 +283,37 @@ public void testIgnoreSameBlock() { node.put(2, receiverMock); 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(); - } - }; - - StandaloneBlockchain.Bundle anotherBundle = new StandaloneBlockchain.Builder() - .withValidatorConfiguration("simple") - .withDefaultAccounts(accounts) - .build(); + 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(); + } + }; + + StandaloneBlockchain.Bundle anotherBundle = + 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); + BlockPropagationHandler handler = + 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); - assertThat(handler.processIncomingBlock(senderMock.getIdHash(), "test", block)).isEqualTo(BlockPropagationHandler.PropStatus.DROPPED); + assertThat(handler.processIncomingBlock(senderMock.getIdHash(), "test", block)) + .isEqualTo(BlockPropagationHandler.PropStatus.PROP_CONNECTED); + assertThat(handler.processIncomingBlock(senderMock.getIdHash(), "test", block)) + .isEqualTo(BlockPropagationHandler.PropStatus.DROPPED); assertThat(times.get()).isEqualTo(1); } @@ -317,12 +322,14 @@ public void send(int _nodeId, String s, Msg _msg) { public void testIgnoreSelfBlock() { List accounts = generateDefaultAccounts(); - StandaloneBlockchain.Bundle bundle = new StandaloneBlockchain.Builder() - .withValidatorConfiguration("simple") - .withDefaultAccounts(accounts) - .build(); + StandaloneBlockchain.Bundle bundle = + new StandaloneBlockchain.Builder() + .withValidatorConfiguration("simple") + .withDefaultAccounts(accounts) + .build(); - AionBlock block = bundle.bc.createNewBlock(bundle.bc.getGenesis(), Collections.EMPTY_LIST, true); + AionBlock block = + bundle.bc.createNewBlock(bundle.bc.getGenesis(), Collections.EMPTY_LIST, true); assertThat(block.getNumber()).isEqualTo(1); byte[] sender = HashUtil.h256("node1".getBytes()); @@ -332,23 +339,27 @@ public void testIgnoreSelfBlock() { node.put(1, senderMock); AtomicInteger sendCount = new AtomicInteger(); - P2pMock p2pMock = 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(); - - BlockPropagationHandler handler = new BlockPropagationHandler( - 1024, - anotherBundle.bc, // NOTE: not the same blockchain that generated the block - p2pMock, - anotherBundle.bc.getBlockHeaderValidator(), false); + P2pMock p2pMock = + 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(); + + BlockPropagationHandler handler = + 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 @@ -356,7 +367,8 @@ public void send(int _nodeId, String s, Msg _msg) { // recall that we're using another blockchain and faked the propagation // 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); + assertThat(handler.processIncomingBlock(senderMock.getIdHash(), "test", block)) + .isEqualTo(BlockPropagationHandler.PropStatus.DROPPED); // we expect the counter to be incremented once (on propagation) assertThat(sendCount.get()).isEqualTo(1); diff --git a/modAionImpl/test/org/aion/zero/impl/sync/msg/ResStatusTest.java b/modAionImpl/test/org/aion/zero/impl/sync/msg/ResStatusTest.java index 2c2a5183d6..f4d5adcc62 100644 --- a/modAionImpl/test/org/aion/zero/impl/sync/msg/ResStatusTest.java +++ b/modAionImpl/test/org/aion/zero/impl/sync/msg/ResStatusTest.java @@ -60,6 +60,7 @@ public void test() { assertEquals(bestBlockNumber, rs2.getBestBlockNumber()); assertTrue(Arrays.equals(totalDifficulty, rs2.getTotalDifficulty())); assertTrue(Arrays.equals(bestBlockHash, rs2.getBestHash())); + assertTrue(Arrays.equals(genesisHash, rs2.getGenesisHash())); } } diff --git a/modApiServer/src/org/aion/api/server/ApiAion.java b/modApiServer/src/org/aion/api/server/ApiAion.java index 6c735f59fa..7f063b9716 100644 --- a/modApiServer/src/org/aion/api/server/ApiAion.java +++ b/modApiServer/src/org/aion/api/server/ApiAion.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* ****************************************************************************** * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -44,6 +44,7 @@ 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; import org.aion.zero.impl.blockchain.AionPendingStateImpl; import org.aion.zero.impl.blockchain.IAionChain; @@ -90,7 +91,7 @@ public abstract class ApiAion extends Api { protected final String clientVersion = computeClientVersion(); private ReentrantLock blockTemplateLock; - private volatile AionBlock currentTemplate; + private volatile BlockContext currentTemplate; private byte[] currentBestBlockHash; protected EventExecuteService ees; @@ -158,7 +159,7 @@ public AionBlock getBestBlock() { return this.ac.getBlockchain().getBestBlock(); } - protected AionBlock getBlockTemplate() { + protected BlockContext getBlockTemplate() { blockTemplateLock.lock(); try { @@ -174,9 +175,8 @@ protected AionBlock getBlockTemplate() { AionPendingStateImpl.TransactionSortedSet ret = new AionPendingStateImpl.TransactionSortedSet(); ret.addAll(ac.getAionHub().getPendingState().getPendingTransactions()); - currentTemplate = ac.getAionHub().getBlockchain().createNewBlock(bestBlock, new ArrayList<>(ret), false); + currentTemplate = ac.getAionHub().getBlockchain().createNewBlockContext(bestBlock, new ArrayList<>(ret), false); } - } finally { blockTemplateLock.unlock(); } @@ -476,6 +476,14 @@ public BigInteger getBalance(Address _address) { return this.ac.getRepository().getBalance(_address); } + public BigInteger getNonce(String _address) { + return this.ac.getRepository().getNonce(Address.wrap(_address)); + } + + public BigInteger getNonce(Address _address) { + return this.ac.getRepository().getNonce(_address); + } + // TODO: refactor these ad-hoc transaction creations - violates DRY and is messy protected long estimateNrg(ArgTxCall _params) { @@ -549,15 +557,9 @@ protected byte[] sendTransaction(byte[] signedTx) { throw new NullPointerException(); } - try { - AionTransaction tx = new AionTransaction(signedTx); - - pendingState.addPendingTransaction(tx); - - return tx.getHash(); - } catch (Exception ex) { - return ByteUtil.EMPTY_BYTE_ARRAY; - } + AionTransaction tx = new AionTransaction(signedTx); + pendingState.addPendingTransaction(tx); + return tx.getHash(); } // --Commented out by Inspection START (02/02/18 6:58 PM): diff --git a/modApiServer/src/org/aion/api/server/http/ApiWeb3Aion.java b/modApiServer/src/org/aion/api/server/http/ApiWeb3Aion.java index da98923643..1313fd7e7e 100644 --- a/modApiServer/src/org/aion/api/server/http/ApiWeb3Aion.java +++ b/modApiServer/src/org/aion/api/server/http/ApiWeb3Aion.java @@ -55,6 +55,7 @@ import org.aion.mcf.vm.types.Log; import org.aion.p2p.INode; import org.aion.zero.impl.AionBlockchainImpl; +import org.aion.zero.impl.BlockContext; import org.aion.zero.impl.Version; import org.aion.zero.impl.blockchain.AionImpl; import org.aion.zero.impl.blockchain.IAionChain; @@ -660,8 +661,8 @@ else if (_params instanceof JSONObject) { return new RpcMsg(null, RpcError.INVALID_PARAMS, "Null raw transaction provided."); byte[] rawTransaction = ByteUtil.hexStringToBytes(_rawTx); - byte[] transactionHash = sendTransaction(rawTransaction); + byte[] transactionHash = sendTransaction(rawTransaction); return new RpcMsg(TypeConverter.toJsonHex(transactionHash)); } @@ -2128,8 +2129,8 @@ public RpcMsg stratum_getwork() { return new RpcMsg(null, RpcError.NOT_ALLOWED, "SeedNodeIsOpened"); } - AionBlock bestBlock = getBlockTemplate(); - ByteArrayWrapper key = new ByteArrayWrapper(bestBlock.getHeader().getMineHash()); + BlockContext bestBlock = getBlockTemplate(); + ByteArrayWrapper key = new ByteArrayWrapper(bestBlock.block.getHeader().getMineHash()); // Read template map; if block already contained chain has not moved forward, simply return the same block. boolean isContained = false; @@ -2148,28 +2149,28 @@ public RpcMsg stratum_getwork() { templateMapLock.writeLock().lock(); // Deep copy best block to avoid modifying internal best blocks - bestBlock = new AionBlock(bestBlock); + bestBlock = new BlockContext(bestBlock); if (!templateMap.keySet().isEmpty()) { - if (templateMap.get(templateMap.keySet().iterator().next()).getNumber() < bestBlock.getNumber()) { + if (templateMap.get(templateMap.keySet().iterator().next()).getNumber() < bestBlock.block.getNumber()) { // Found a higher block, clear any remaining cached entries and start on new height templateMap.clear(); } } - templateMap.put(key, bestBlock); + templateMap.put(key, bestBlock.block); }finally { templateMapLock.writeLock().unlock(); } } - JSONObject coinbaseaux = new JSONObject(); - JSONObject obj = new JSONObject(); - obj.put("previousblockhash", toHexString(bestBlock.getParentHash())); - obj.put("height", bestBlock.getNumber()); - obj.put("target", toHexString(bestBlock.getHeader().getPowBoundary())); - obj.put("headerHash", toHexString(bestBlock.getHeader().getMineHash())); + obj.put("previousblockhash", toHexString(bestBlock.block.getParentHash())); + obj.put("height", bestBlock.block.getNumber()); + obj.put("target", toHexString(bestBlock.block.getHeader().getPowBoundary())); + obj.put("headerHash", toHexString(bestBlock.block.getHeader().getMineHash())); + obj.put("blockBaseReward", toHexString(bestBlock.baseBlockReward.toByteArray())); + obj.put("blockTxFee", toHexString(bestBlock.transactionFee.toByteArray())); return new RpcMsg(obj); } diff --git a/modApiServer/src/org/aion/api/server/pb/ApiAion0.java b/modApiServer/src/org/aion/api/server/pb/ApiAion0.java index 965b0aef59..17bd085601 100644 --- a/modApiServer/src/org/aion/api/server/pb/ApiAion0.java +++ b/modApiServer/src/org/aion/api/server/pb/ApiAion0.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* ****************************************************************************** * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -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.pb.Message.Retcode; import org.aion.api.server.types.ArgTxCall; import org.aion.api.server.types.CompiledContr; import org.aion.api.server.types.EvtContract; @@ -175,18 +176,18 @@ protected void pendingTxUpdate(ITxReceipt _txRcpt, EventTx.STATE _state) { ((AionTxReceipt) _txRcpt).getTransaction().getHash()); if (LOG.isTraceEnabled()) { - LOG.trace("ApiAionA0.onPendingTransactionUpdate - txHash: [{}], state: [{}]", txHashW.toString(), _state.getValue()); + LOG.trace("ApiAion0.onPendingTransactionUpdate - txHash: [{}], state: [{}]", txHashW.toString(), _state.getValue()); } if (getMsgIdMapping().get(txHashW) != null) { if (pendingStatus.remainingCapacity() == 0) { pendingStatus.poll(); LOG.warn( - "ApiAionA0.onPendingTransactionUpdate - txPend ingStatus queue full, drop the first message."); + "ApiAion0.onPendingTransactionUpdate - txPend ingStatus queue full, drop the first message."); } if (LOG.isTraceEnabled()) { - LOG.trace("ApiAionA0.onPendingTransactionUpdate - the pending Tx state : [{}]", _state.getValue()); + LOG.trace("ApiAion0.onPendingTransactionUpdate - the pending Tx state : [{}]", _state.getValue()); } pendingStatus.add(new TxPendingStatus(txHashW, @@ -208,7 +209,7 @@ protected void pendingTxUpdate(ITxReceipt _txRcpt, EventTx.STATE _state) { if (txWait.remainingCapacity() == 0) { txWait.poll(); if (LOG.isTraceEnabled()) { - LOG.trace("ApiAionA0.onPendingTransactionUpdate - txWait queue full, drop the first message."); + LOG.trace("ApiAion0.onPendingTransactionUpdate - txWait queue full, drop the first message."); } } @@ -216,7 +217,7 @@ protected void pendingTxUpdate(ITxReceipt _txRcpt, EventTx.STATE _state) { try { txWait.put(new TxWaitingMappingUpdate(txHashW, _state.getValue(), ((AionTxReceipt) _txRcpt))); } catch (InterruptedException e) { - LOG.error("ApiAionA0.onPendingTransactionUpdate txWait.put exception", e.getMessage()); + LOG.error("ApiAion0.onPendingTransactionUpdate txWait.put exception", e.getMessage()); } } } @@ -301,13 +302,13 @@ public ApiAion0(IAionChain ac) { public byte[] process(byte[] request, byte[] socketId) { if (request == null || (request.length < this.getApiHeaderLen())) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_header_len_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_header_len_VALUE); } byte[] msgHash = ApiUtil.getApiMsgHash(request); if (request[0] < this.getApiVersion()) { - return msgHash == null ? ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_api_version_VALUE) - : ApiUtil.toReturnHeader(getApiVersion(), Message.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]; @@ -316,7 +317,7 @@ public byte[] process(byte[] request, byte[] socketId) { // General Module case Message.Funcs.f_protocolVersion_VALUE: { if (service != Message.Servs.s_net_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } // TODO : create query API for every module @@ -327,32 +328,32 @@ public byte[] process(byte[] request, byte[] socketId) { .setTxpool(this.ac.getAionHub().getPendingState().getVersion()) .setVm("0.1.0").build(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } String cb = this.getCoinbase(); if (cb == null) { - LOG.debug("ApiAionA0.process.coinbase - null coinbase"); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_wallet_nullcb_VALUE); + 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(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE, msgHash); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE, msgHash); } Message.req_contractDeploy req; @@ -364,14 +365,14 @@ public byte[] process(byte[] request, byte[] socketId) { // instead of str format like "0xhex".! byte[] bytes = req.getData().toByteArray(); if (bytes == null || bytes.length <= 4) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_ct_bytecode_VALUE, msgHash); + 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("ApiAionA0.process.ContractDeploy - ArgsTxCall: [{}] ", params.toString()); + LOG.debug("ApiAion0.process.ContractDeploy - ArgsTxCall: [{}] ", params.toString()); result = this.createContract(params); @@ -379,19 +380,19 @@ public byte[] process(byte[] request, byte[] socketId) { getMsgIdMapping().put(ByteArrayWrapper.wrap(result.transId), new AbstractMap.SimpleEntry<>( ByteArrayWrapper.wrap(msgHash), ByteArrayWrapper.wrap(socketId))); if (LOG.isDebugEnabled()) { - LOG.debug("ApiAionA0.process.ContractDeploy - msgIdMapping.put: [{}] ", ByteArrayWrapper.wrap(result.transId).toString()); + LOG.debug("ApiAion0.process.ContractDeploy - msgIdMapping.put: [{}] ", ByteArrayWrapper.wrap(result.transId).toString()); } } } catch (Exception e) { - LOG.error("ApiAionA0.process.ContractDeploy exception [{}] ", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE, msgHash); + 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(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_tx_Recved_VALUE, msgHash); + byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_tx_Recved_VALUE, msgHash); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } @@ -399,7 +400,7 @@ public byte[] process(byte[] request, byte[] socketId) { case Message.Funcs.f_accounts_VALUE: { if (service != Message.Servs.s_wallet_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } // noinspection unchecked @@ -410,24 +411,24 @@ public byte[] process(byte[] request, byte[] socketId) { } Message.rsp_accounts rsp = Message.rsp_accounts.newBuilder().addAllAccout(al).build(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_VALUE); + 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(), Message.Retcode.r_fail_service_call_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(), Message.Retcode.r_success_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } byte[] data = parseMsgReq(request, msgHash); @@ -437,11 +438,11 @@ public byte[] process(byte[] request, byte[] socketId) { result = this.unlockAccount(Address.wrap(req.getAccount().toByteArray()), req.getPassword(), req.getDuration()); } catch (InvalidProtocolBufferException e) { - LOG.error("ApiAionA0.process.unlockAccount exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + LOG.error("ApiAion0.process.unlockAccount exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); } - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_VALUE); + byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, (byte) (result ? 0x01 : 0x00)); } @@ -449,7 +450,7 @@ public byte[] process(byte[] request, byte[] socketId) { case Message.Funcs.f_getBalance_VALUE: { if (service != Message.Servs.s_chain_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } byte[] data = parseMsgReq(request, msgHash); @@ -461,20 +462,45 @@ public byte[] process(byte[] request, byte[] socketId) { balance = this.getBalance(addr); } catch (InvalidProtocolBufferException e) { - LOG.error("ApiAionA0.process.getbalance exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + 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(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_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[] 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); + } + + 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()); + + } case Message.Funcs.f_compile_VALUE: { if (service != Message.Servs.s_tx_VALUE) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } byte[] data = parseMsgReq(request, msgHash); @@ -482,7 +508,7 @@ public byte[] process(byte[] request, byte[] socketId) { Message.req_compileSolidity req = Message.req_compileSolidity.parseFrom(data); String source = req.getSource(); if (source == null) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_null_compile_source_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_null_compile_source_VALUE); } @SuppressWarnings("unchecked") @@ -493,7 +519,7 @@ public byte[] process(byte[] request, byte[] socketId) { for (Entry entry : _contrs.entrySet()) { if (entry.getKey().contains("AionCompileError")) { byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), - Message.Retcode.r_fail_compile_contract_VALUE); + Retcode.r_fail_compile_contract_VALUE); Message.t_Contract tc = Message.t_Contract.newBuilder().setError(entry.getValue().error) .build(); return ApiUtil.combineRetMsg(retHeader, @@ -513,21 +539,21 @@ public byte[] process(byte[] request, byte[] socketId) { b.putConstracts(entry.getKey(), tc); } Message.rsp_compile rsp = b.build(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_VALUE); + byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } else { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); } } catch (InvalidProtocolBufferException e) { - LOG.error("ApiAionA0.process.compile exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE, msgHash); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE, msgHash); } byte[] data = parseMsgReq(request, msgHash); @@ -543,30 +569,30 @@ public byte[] process(byte[] request, byte[] socketId) { result = this.sendTransaction(params); } catch (InvalidProtocolBufferException e) { - LOG.error("ApiAionA0.process.sendTransaction exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE, msgHash); + LOG.error("ApiAion0.process.sendTransaction exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE, msgHash); } if (result == null) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_sendTx_null_rep_VALUE, msgHash); + 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("ApiAionA0.process.sendTransaction - msgIdMapping.put: [{}]", + LOG.debug("ApiAion0.process.sendTransaction - msgIdMapping.put: [{}]", ByteArrayWrapper.wrap(result).toString()); } Message.rsp_sendTransaction rsp = Message.rsp_sendTransaction.newBuilder() .setTxHash(ByteString.copyFrom(result)).build(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_tx_Recved_VALUE, msgHash); + 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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } byte[] data = parseMsgReq(request, msgHash); @@ -577,21 +603,21 @@ public byte[] process(byte[] request, byte[] socketId) { byte[] code = this.getCode(to); if (code == null) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_null_rsp_VALUE); + 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(), Message.Retcode.r_success_VALUE); + byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } catch (Exception e) { - LOG.error("ApiAionA0.process.getCode exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } byte[] data = parseMsgReq(request, msgHash); @@ -601,7 +627,7 @@ public byte[] process(byte[] request, byte[] socketId) { TxRecpt result = this.getTransactionReceipt(req.getTxHash().toByteArray()); if (result == null) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_getTxReceipt_null_recp_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_getTxReceipt_null_recp_VALUE); } List logs = new ArrayList<>(); @@ -633,17 +659,17 @@ public byte[] process(byte[] request, byte[] socketId) { .setNrgConsumed(result.nrgUsed).setCumulativeNrgUsed(result.cumulativeNrgUsed).addAllLogs(logs) .build(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_VALUE); + byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } catch (Exception e) { - LOG.error("ApiAionA0.process.getTransactionReceipt exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } byte[] data = parseMsgReq(request, msgHash); @@ -662,17 +688,17 @@ public byte[] process(byte[] request, byte[] socketId) { Message.rsp_call rsp = Message.rsp_call.newBuilder().setResult(ByteString.copyFrom(this.doCall(params))) .build(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_VALUE); + byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } catch (Exception e) { - LOG.error("ApiAionA0.process.call exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } byte[] data = parseMsgReq(request, msgHash); @@ -685,13 +711,13 @@ public byte[] process(byte[] request, byte[] socketId) { return createBlockMsg(blk); } catch (Exception e) { - LOG.error("ApiAionA0.process.getBlockByNumber exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } byte[] data = parseMsgReq(request, msgHash); @@ -702,19 +728,19 @@ public byte[] process(byte[] request, byte[] socketId) { byte[] hash = req.getBlockHash().toByteArray(); if (hash == null || hash.length != Hash256.BYTES) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_arguments_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); } AionBlock blk = this.getBlockByHash(hash); return createBlockMsg(blk); } catch (Exception e) { - LOG.error("ApiAionA0.process.getBlockByHash exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } byte[] data = parseMsgReq(request, msgHash); @@ -726,26 +752,26 @@ public byte[] process(byte[] request, byte[] socketId) { byte[] hash = req.getBlockHash().toByteArray(); if (txIdx < -1 || hash == null || hash.length != Hash256.BYTES) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_arguments_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); } AionTransaction tx = this.getTransactionByBlockHashAndIndex(hash, txIdx); if (tx == null) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_call_VALUE); } Message.rsp_getTransaction rsp = getRsp_getTransaction(tx); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_VALUE); + byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } catch (Exception e) { - LOG.error("ApiAionA0.process.getTransactionByBlockHashAndIndex exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } byte[] data = parseMsgReq(request, msgHash); @@ -757,26 +783,26 @@ public byte[] process(byte[] request, byte[] socketId) { long txIdx = req.getTxIndex(); if (blkNr < -1 || txIdx < -1) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_arguments_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); } AionTransaction tx = this.getTransactionByBlockNumberAndIndex(blkNr, txIdx); if (tx == null) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_call_VALUE); } Message.rsp_getTransaction rsp = getRsp_getTransaction(tx); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_VALUE); + byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } catch (Exception e) { - LOG.error("ApiAionA0.process.getTransactionByBlockNumberAndIndex exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } byte[] data = parseMsgReq(request, msgHash); @@ -787,27 +813,27 @@ public byte[] process(byte[] request, byte[] socketId) { long blkNr = req.getBlockNumber(); if (blkNr < -1) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_arguments_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); } long cnt = this.getBlockTransactionCountByNumber(blkNr); if (cnt == -1) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_call_VALUE); } Message.rsp_getBlockTransactionCount rsp = Message.rsp_getBlockTransactionCount.newBuilder() .setTxCount((int) cnt).build(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_VALUE); + byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } catch (Exception e) { - LOG.error("ApiAionA0.process.getBlockTransactionCountByNumber exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } byte[] data = parseMsgReq(request, msgHash); @@ -819,28 +845,28 @@ public byte[] process(byte[] request, byte[] socketId) { Address addr = Address.wrap(req.getAddress().toByteArray()); if (blkNr < -1) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_arguments_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); } long cnt = this.getTransactionCount(addr, blkNr); if (cnt == -1) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_call_VALUE); } Message.rsp_getTransactionCount rsp = Message.rsp_getTransactionCount.newBuilder().setTxCount((int) cnt) .build(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_VALUE); + byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } catch (Exception e) { - LOG.error("ApiAionA0.process.getTransactionCount exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } byte[] data = parseMsgReq(request, msgHash); @@ -851,28 +877,28 @@ public byte[] process(byte[] request, byte[] socketId) { byte[] hash = req.getTxHash().toByteArray(); if (hash == null || hash.length != Hash256.BYTES) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_arguments_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); } long cnt = this.getTransactionCountByHash(hash); if (cnt == -1) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_call_VALUE); } Message.rsp_getTransactionCount rsp = Message.rsp_getTransactionCount.newBuilder().setTxCount((int) cnt) .build(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_VALUE); + byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } catch (Exception e) { - LOG.error("ApiAionA0.process.getTransactionCount exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } byte[] data = parseMsgReq(request, msgHash); @@ -883,28 +909,28 @@ public byte[] process(byte[] request, byte[] socketId) { byte[] txHash = req.getTxHash().toByteArray(); if (txHash == null || txHash.length != this.getTxHashLen()) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_arguments_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); } AionTransaction tx = this.getTransactionByHash(txHash); if (tx == null) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_call_VALUE); } Message.rsp_getTransaction rsp = getRsp_getTransaction(tx); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_VALUE); + byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } catch (Exception e) { - LOG.error("ApiAionA0.process.getTransactionCount exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } List nodes = new ArrayList<>(); @@ -924,17 +950,17 @@ public byte[] process(byte[] request, byte[] socketId) { } Message.rsp_getActiveNodes rsp = Message.rsp_getActiveNodes.newBuilder().addAllNode(pl).build(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_VALUE); + byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } catch (Exception e) { - LOG.error("ApiAionA0.process.getActiveNodes exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } List al = Arrays.asList(this.getBootNodes()); List nl = new ArrayList<>(); @@ -947,16 +973,16 @@ public byte[] process(byte[] request, byte[] socketId) { try { Message.rsp_getStaticNodes rsp = Message.rsp_getStaticNodes.newBuilder().addAllNode(nl).build(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_VALUE); + byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } catch (Exception e) { - LOG.error("ApiAionA0.process.getStaticNodes exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } String ver = this.solcVersion(); @@ -964,31 +990,31 @@ public byte[] process(byte[] request, byte[] socketId) { try { Message.rsp_getSolcVersion rsp = Message.rsp_getSolcVersion.newBuilder().setVer(ver).build(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_VALUE); + byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } catch (Exception e) { - LOG.error("ApiAionA0.process.getSolcVersion exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + 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(), Message.Retcode.r_fail_service_call_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(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_VALUE); + byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } catch (Exception e) { - LOG.error("ApiAionA0.process.syncing exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } SyncInfo sync = this.getSync(); @@ -998,16 +1024,16 @@ public byte[] process(byte[] request, byte[] socketId) { .setNetworkBestBlock(sync.networkBestBlkNumber).setSyncing(!sync.done) .setMaxImportBlocks(24).build(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_VALUE); + byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } catch (Exception e) { - LOG.error("ApiAionA0.process.syncInfo exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } byte[] data = parseMsgReq(request, msgHash); @@ -1037,24 +1063,24 @@ public byte[] process(byte[] request, byte[] socketId) { Message.rsp_accountCreate rsp = Message.rsp_accountCreate.newBuilder().addAllAddress(addressList) .addAllPrivateKey(pKeyList).build(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_VALUE); + byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } catch (Exception e) { - LOG.error("ApiAionA0.process.accountCreate exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } byte[] data = parseMsgReq(request, msgHash); if (data == null) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_arguments_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); } boolean result; @@ -1062,36 +1088,36 @@ public byte[] process(byte[] request, byte[] socketId) { Message.req_accountlock req = Message.req_accountlock.parseFrom(data); result = this.lockAccount(Address.wrap(req.getAccount().toByteArray()), req.getPassword()); } catch (InvalidProtocolBufferException e) { - LOG.error("ApiAionA0.process.lockAccount exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + LOG.error("ApiAion0.process.lockAccount exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); } - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_unsupport_api_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(), Message.Retcode.r_fail_service_call_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(), Message.Retcode.r_success_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE, msgHash); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE, msgHash); } byte[] data = parseMsgReq(request, msgHash); @@ -1106,20 +1132,20 @@ public byte[] process(byte[] request, byte[] socketId) { result = this.estimateNrg(params); } catch (InvalidProtocolBufferException e) { - LOG.error("ApiAionA0.process.estimateNrg exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE, msgHash); + 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(), Message.Retcode.r_success_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } byte[] data = parseMsgReq(request, msgHash); @@ -1128,8 +1154,8 @@ public byte[] process(byte[] request, byte[] socketId) { try { req = Message.req_exportAccounts.parseFrom(data); } catch (Exception e) { - LOG.error("ApiAionA0.process.exportAccounts exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + LOG.error("ApiAion0.process.exportAccounts exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); } Map addrMap = new HashMap<>(); @@ -1152,13 +1178,13 @@ public byte[] process(byte[] request, byte[] socketId) { Message.rsp_exportAccounts rsp = Message.rsp_exportAccounts.newBuilder().addAllKeyFile(keyBins) .addAllFailedKey(invalidKey).build(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } byte[] data = parseMsgReq(request, msgHash); @@ -1167,16 +1193,16 @@ public byte[] process(byte[] request, byte[] socketId) { try { req = Message.req_importAccounts.parseFrom(data); } catch (Exception e) { - LOG.error("ApiAionA0.process.importAccount exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + 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("ApiAionA0.process.importAccount exception: [null importKey]"); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + LOG.error("ApiAion0.process.importAccount exception: [null importKey]"); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); } Set res = Keystore.importAccount(importKey); @@ -1186,13 +1212,13 @@ public byte[] process(byte[] request, byte[] socketId) { Message.rsp_importAccounts rsp = Message.rsp_importAccounts.newBuilder().addAllInvalidKey(res).build(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE, msgHash); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE, msgHash); } byte[] data = parseMsgReq(request, msgHash); @@ -1202,35 +1228,35 @@ public byte[] process(byte[] request, byte[] socketId) { req = Message.req_rawTransaction.parseFrom(data); byte[] encodedTx = req.getEncodedTx().toByteArray(); if (encodedTx == null) { - LOG.error("ApiAionA0.process.signedTransaction exception: [null encodedTx]"); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_arguments_VALUE); + LOG.error("ApiAion0.process.rawTransaction exception: [null encodedTx]"); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); } result = this.sendTransaction(encodedTx); - } catch (InvalidProtocolBufferException e) { - LOG.error("ApiAionA0.process.sendTransaction exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE, msgHash); + } 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(), Message.Retcode.r_fail_sendTx_null_rep_VALUE, msgHash); + 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("ApiAionA0.process.sendTransaction - msgIdMapping.put: [{}]", ByteArrayWrapper.wrap(result).toString()); + 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(), Message.Retcode.r_tx_Recved_VALUE, msgHash); + 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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } byte[] data = parseMsgReq(request, msgHash); @@ -1242,7 +1268,7 @@ public byte[] process(byte[] request, byte[] socketId) { List evtList = new ArrayList<>(req.getEventsList()); if (evtList.isEmpty()) { LOG.error("ApiNucoNcp.process.eventRegister : [{}]", "empty event list"); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_arguments_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); } Message.t_FilterCt fltr = req.getFilter(); @@ -1266,17 +1292,17 @@ public byte[] process(byte[] request, byte[] socketId) { Message.rsp_eventRegister rsp = Message.rsp_eventRegister.newBuilder().setResult(true).build(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_VALUE); + byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } catch (Exception e) { - LOG.error("ApiAionA0.process.eventRegister exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } byte[] data = parseMsgReq(request, msgHash); @@ -1295,8 +1321,8 @@ public byte[] process(byte[] request, byte[] socketId) { } if (evtList.isEmpty()) { - LOG.error("ApiAionA0.process.eventRegister : [{}]", "empty event list"); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_arguments_VALUE); + LOG.error("ApiAion0.process.eventRegister : [{}]", "empty event list"); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); } long lv = ByteUtil.byteArrayToLong(socketId); @@ -1316,17 +1342,17 @@ public byte[] process(byte[] request, byte[] socketId) { Message.rsp_eventRegister rsp = Message.rsp_eventRegister.newBuilder().setResult(changed).build(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_VALUE); + byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } catch (Exception e) { - LOG.error("ApiAionA0.process.eventDeregister exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } byte[] data = parseMsgReq(request, msgHash); @@ -1351,7 +1377,7 @@ public byte[] process(byte[] request, byte[] socketId) { List> blks = getBlkAndDifficultyForBlkNumList(blkNum); if (blks == null) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_arguments_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); } else { @@ -1360,17 +1386,17 @@ public byte[] process(byte[] request, byte[] socketId) { .addAllBlkDetails(bds) .build(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_VALUE); + byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } } catch (Exception e) { - LOG.error("ApiAionA0.process.getBlockDetailsByNumber exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } byte[] data = parseMsgReq(request, msgHash); @@ -1401,7 +1427,7 @@ public byte[] process(byte[] request, byte[] socketId) { blkEnd = _blkEnd; if (blkEnd < blkStart) - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_arguments_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); // truncate the thing if (blkEnd - blkStart > 1000) { @@ -1504,16 +1530,16 @@ public byte[] process(byte[] request, byte[] socketId) { .addAllBlkSql(bds) .build(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_VALUE); + byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } catch (Exception e) { - LOG.error("ApiAionA0.process.getBlockDetailsByNumber exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } byte[] data = parseMsgReq(request, msgHash); @@ -1545,7 +1571,7 @@ public byte[] process(byte[] request, byte[] socketId) { .addAllBlkDetails(new ArrayList<>()) .build(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_VALUE); + byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } @@ -1555,7 +1581,7 @@ public byte[] process(byte[] request, byte[] socketId) { blkEnd = _blkEnd; if (blkEnd < blkStart) - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_arguments_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); // truncate at the beginning of range if (blkEnd - blkStart > 1000) { @@ -1647,16 +1673,16 @@ public byte[] process(byte[] request, byte[] socketId) { .addAllBlkDetails(bds) .build(); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_VALUE); + byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } catch (Exception e) { - LOG.error("ApiAionA0.process.getBlockDetailsByNumber exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } byte[] data = parseMsgReq(request, msgHash); @@ -1681,24 +1707,24 @@ public byte[] process(byte[] request, byte[] socketId) { List> blks = getBlkAndDifficultyForBlkNumList(blkNum); if (blks == null) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_arguments_VALUE); + 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(), Message.Retcode.r_success_VALUE); + byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } } catch (Exception e) { - LOG.error("ApiAionA0.process.getBlockDetailsByLatest exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } byte[] data = parseMsgReq(request, msgHash); @@ -1723,24 +1749,24 @@ public byte[] process(byte[] request, byte[] socketId) { List> blks = getBlkAndDifficultyForBlkNumList(blkNum); if (blks == null) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_arguments_VALUE); + 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(), Message.Retcode.r_success_VALUE); + byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } } catch (Exception e) { - LOG.error("ApiAionA0.process.getBlocksByLatest exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + 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(), Message.Retcode.r_fail_service_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_service_call_VALUE); } byte[] data = parseMsgReq(request, msgHash); @@ -1768,19 +1794,19 @@ public byte[] process(byte[] request, byte[] socketId) { ).collect(Collectors.toList()); if (accounts == null) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_arguments_VALUE); + 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(), Message.Retcode.r_success_VALUE); + byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } catch (Exception e) { - LOG.error("ApiAionA0.process.getBlockDetailsByNumber exception: [{}]", e.getMessage()); - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_exception_VALUE); + LOG.error("ApiAion0.process.getBlockDetailsByNumber exception: [{}]", e.getMessage()); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_exception_VALUE); } } @@ -1788,7 +1814,7 @@ public byte[] process(byte[] request, byte[] socketId) { // case Message.Funcs.f_submitWork_VALUE: // case Message.Funcs.f_getWork_VALUE: default: - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_call_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_call_VALUE); } } @@ -1812,7 +1838,7 @@ public void shutDown() { private byte[] createBlockMsg(AionBlock blk) { if (blk == null) { - return ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_fail_function_arguments_VALUE); + return ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_fail_function_arguments_VALUE); } else { List al = new ArrayList<>(); @@ -1823,7 +1849,7 @@ private byte[] createBlockMsg(AionBlock blk) { BigInteger td = this.ac.getBlockchain().getTotalDifficultyByHash(Hash256.wrap(blk.getHash())); Message.rsp_getBlock rsp = getRsp_getBlock(blk, al, td); - byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Message.Retcode.r_success_VALUE); + byte[] retHeader = ApiUtil.toReturnHeader(getApiVersion(), Retcode.r_success_VALUE); return ApiUtil.combineRetMsg(retHeader, rsp.toByteArray()); } } diff --git a/modApiServer/src/org/aion/api/server/pb/Message.java b/modApiServer/src/org/aion/api/server/pb/Message.java index cc505a3047..184c7cb2e2 100644 --- a/modApiServer/src/org/aion/api/server/pb/Message.java +++ b/modApiServer/src/org/aion/api/server/pb/Message.java @@ -413,6 +413,10 @@ public enum Funcs * f_getBlockDetailsByRange = 55; */ f_getBlockDetailsByRange(55), + /** + * f_getNonce = 56; + */ + f_getNonce(56), UNRECOGNIZED(-1), ; @@ -640,6 +644,10 @@ public enum Funcs * f_getBlockDetailsByRange = 55; */ public static final int f_getBlockDetailsByRange_VALUE = 55; + /** + * f_getNonce = 56; + */ + public static final int f_getNonce_VALUE = 56; public final int getNumber() { @@ -716,6 +724,7 @@ public static Funcs forNumber(int value) { case 53: return f_NA; case 54: return f_getBlockSqlByRange; case 55: return f_getBlockDetailsByRange; + case 56: return f_getNonce; default: return null; } } @@ -1141,67 +1150,67 @@ public interface t_ContractOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional string code = 1; + * string code = 1; */ java.lang.String getCode(); /** - * optional string code = 1; + * string code = 1; */ com.google.protobuf.ByteString getCodeBytes(); /** - * optional string error = 2; + * string error = 2; */ java.lang.String getError(); /** - * optional string error = 2; + * string error = 2; */ com.google.protobuf.ByteString getErrorBytes(); /** - * optional string source = 3; + * string source = 3; */ java.lang.String getSource(); /** - * optional string source = 3; + * string source = 3; */ com.google.protobuf.ByteString getSourceBytes(); /** - * optional string compilerVersion = 4; + * string compilerVersion = 4; */ java.lang.String getCompilerVersion(); /** - * optional string compilerVersion = 4; + * string compilerVersion = 4; */ com.google.protobuf.ByteString getCompilerVersionBytes(); /** - * optional string compilerOptions = 5; + * string compilerOptions = 5; */ java.lang.String getCompilerOptions(); /** - * optional string compilerOptions = 5; + * string compilerOptions = 5; */ com.google.protobuf.ByteString getCompilerOptionsBytes(); /** - * optional bytes abiDef = 6; + * bytes abiDef = 6; */ com.google.protobuf.ByteString getAbiDef(); /** - * optional bytes userDoc = 7; + * bytes userDoc = 7; */ com.google.protobuf.ByteString getUserDoc(); /** - * optional bytes devDoc = 8; + * bytes devDoc = 8; */ com.google.protobuf.ByteString getDevDoc(); } @@ -1212,6 +1221,7 @@ 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); @@ -1230,14 +1240,19 @@ private t_Contract() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -1247,7 +1262,8 @@ private t_Contract( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -1305,6 +1321,7 @@ private t_Contract( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -1323,7 +1340,7 @@ private t_Contract( public static final int CODE_FIELD_NUMBER = 1; private volatile java.lang.Object code_; /** - * optional string code = 1; + * string code = 1; */ public java.lang.String getCode() { java.lang.Object ref = code_; @@ -1338,7 +1355,7 @@ public java.lang.String getCode() { } } /** - * optional string code = 1; + * string code = 1; */ public com.google.protobuf.ByteString getCodeBytes() { @@ -1357,7 +1374,7 @@ public java.lang.String getCode() { public static final int ERROR_FIELD_NUMBER = 2; private volatile java.lang.Object error_; /** - * optional string error = 2; + * string error = 2; */ public java.lang.String getError() { java.lang.Object ref = error_; @@ -1372,7 +1389,7 @@ public java.lang.String getError() { } } /** - * optional string error = 2; + * string error = 2; */ public com.google.protobuf.ByteString getErrorBytes() { @@ -1391,7 +1408,7 @@ public java.lang.String getError() { public static final int SOURCE_FIELD_NUMBER = 3; private volatile java.lang.Object source_; /** - * optional string source = 3; + * string source = 3; */ public java.lang.String getSource() { java.lang.Object ref = source_; @@ -1406,7 +1423,7 @@ public java.lang.String getSource() { } } /** - * optional string source = 3; + * string source = 3; */ public com.google.protobuf.ByteString getSourceBytes() { @@ -1425,7 +1442,7 @@ public java.lang.String getSource() { public static final int COMPILERVERSION_FIELD_NUMBER = 4; private volatile java.lang.Object compilerVersion_; /** - * optional string compilerVersion = 4; + * string compilerVersion = 4; */ public java.lang.String getCompilerVersion() { java.lang.Object ref = compilerVersion_; @@ -1440,7 +1457,7 @@ public java.lang.String getCompilerVersion() { } } /** - * optional string compilerVersion = 4; + * string compilerVersion = 4; */ public com.google.protobuf.ByteString getCompilerVersionBytes() { @@ -1459,7 +1476,7 @@ public java.lang.String getCompilerVersion() { public static final int COMPILEROPTIONS_FIELD_NUMBER = 5; private volatile java.lang.Object compilerOptions_; /** - * optional string compilerOptions = 5; + * string compilerOptions = 5; */ public java.lang.String getCompilerOptions() { java.lang.Object ref = compilerOptions_; @@ -1474,7 +1491,7 @@ public java.lang.String getCompilerOptions() { } } /** - * optional string compilerOptions = 5; + * string compilerOptions = 5; */ public com.google.protobuf.ByteString getCompilerOptionsBytes() { @@ -1493,7 +1510,7 @@ public java.lang.String getCompilerOptions() { public static final int ABIDEF_FIELD_NUMBER = 6; private com.google.protobuf.ByteString abiDef_; /** - * optional bytes abiDef = 6; + * bytes abiDef = 6; */ public com.google.protobuf.ByteString getAbiDef() { return abiDef_; @@ -1502,7 +1519,7 @@ public com.google.protobuf.ByteString getAbiDef() { public static final int USERDOC_FIELD_NUMBER = 7; private com.google.protobuf.ByteString userDoc_; /** - * optional bytes userDoc = 7; + * bytes userDoc = 7; */ public com.google.protobuf.ByteString getUserDoc() { return userDoc_; @@ -1511,7 +1528,7 @@ public com.google.protobuf.ByteString getUserDoc() { public static final int DEVDOC_FIELD_NUMBER = 8; private com.google.protobuf.ByteString devDoc_; /** - * optional bytes devDoc = 8; + * bytes devDoc = 8; */ public com.google.protobuf.ByteString getDevDoc() { return devDoc_; @@ -1553,6 +1570,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!devDoc_.isEmpty()) { output.writeBytes(8, devDoc_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -1587,11 +1605,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, devDoc_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -1619,6 +1637,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getUserDoc()); result = result && getDevDoc() .equals(other.getDevDoc()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -1628,7 +1647,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + getCode().hashCode(); hash = (37 * hash) + ERROR_FIELD_NUMBER; @@ -1650,6 +1669,17 @@ public int hashCode() { return hash; } + 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 { @@ -1818,7 +1848,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -1831,12 +1861,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -1879,6 +1909,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.t_Contract other) { if (other.getDevDoc() != com.google.protobuf.ByteString.EMPTY) { setDevDoc(other.getDevDoc()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -1907,7 +1938,7 @@ public Builder mergeFrom( private java.lang.Object code_ = ""; /** - * optional string code = 1; + * string code = 1; */ public java.lang.String getCode() { java.lang.Object ref = code_; @@ -1922,7 +1953,7 @@ public java.lang.String getCode() { } } /** - * optional string code = 1; + * string code = 1; */ public com.google.protobuf.ByteString getCodeBytes() { @@ -1938,7 +1969,7 @@ public java.lang.String getCode() { } } /** - * optional string code = 1; + * string code = 1; */ public Builder setCode( java.lang.String value) { @@ -1951,7 +1982,7 @@ public Builder setCode( return this; } /** - * optional string code = 1; + * string code = 1; */ public Builder clearCode() { @@ -1960,7 +1991,7 @@ public Builder clearCode() { return this; } /** - * optional string code = 1; + * string code = 1; */ public Builder setCodeBytes( com.google.protobuf.ByteString value) { @@ -1976,7 +2007,7 @@ public Builder setCodeBytes( private java.lang.Object error_ = ""; /** - * optional string error = 2; + * string error = 2; */ public java.lang.String getError() { java.lang.Object ref = error_; @@ -1991,7 +2022,7 @@ public java.lang.String getError() { } } /** - * optional string error = 2; + * string error = 2; */ public com.google.protobuf.ByteString getErrorBytes() { @@ -2007,7 +2038,7 @@ public java.lang.String getError() { } } /** - * optional string error = 2; + * string error = 2; */ public Builder setError( java.lang.String value) { @@ -2020,7 +2051,7 @@ public Builder setError( return this; } /** - * optional string error = 2; + * string error = 2; */ public Builder clearError() { @@ -2029,7 +2060,7 @@ public Builder clearError() { return this; } /** - * optional string error = 2; + * string error = 2; */ public Builder setErrorBytes( com.google.protobuf.ByteString value) { @@ -2045,7 +2076,7 @@ public Builder setErrorBytes( private java.lang.Object source_ = ""; /** - * optional string source = 3; + * string source = 3; */ public java.lang.String getSource() { java.lang.Object ref = source_; @@ -2060,7 +2091,7 @@ public java.lang.String getSource() { } } /** - * optional string source = 3; + * string source = 3; */ public com.google.protobuf.ByteString getSourceBytes() { @@ -2076,7 +2107,7 @@ public java.lang.String getSource() { } } /** - * optional string source = 3; + * string source = 3; */ public Builder setSource( java.lang.String value) { @@ -2089,7 +2120,7 @@ public Builder setSource( return this; } /** - * optional string source = 3; + * string source = 3; */ public Builder clearSource() { @@ -2098,7 +2129,7 @@ public Builder clearSource() { return this; } /** - * optional string source = 3; + * string source = 3; */ public Builder setSourceBytes( com.google.protobuf.ByteString value) { @@ -2114,7 +2145,7 @@ public Builder setSourceBytes( private java.lang.Object compilerVersion_ = ""; /** - * optional string compilerVersion = 4; + * string compilerVersion = 4; */ public java.lang.String getCompilerVersion() { java.lang.Object ref = compilerVersion_; @@ -2129,7 +2160,7 @@ public java.lang.String getCompilerVersion() { } } /** - * optional string compilerVersion = 4; + * string compilerVersion = 4; */ public com.google.protobuf.ByteString getCompilerVersionBytes() { @@ -2145,7 +2176,7 @@ public java.lang.String getCompilerVersion() { } } /** - * optional string compilerVersion = 4; + * string compilerVersion = 4; */ public Builder setCompilerVersion( java.lang.String value) { @@ -2158,7 +2189,7 @@ public Builder setCompilerVersion( return this; } /** - * optional string compilerVersion = 4; + * string compilerVersion = 4; */ public Builder clearCompilerVersion() { @@ -2167,7 +2198,7 @@ public Builder clearCompilerVersion() { return this; } /** - * optional string compilerVersion = 4; + * string compilerVersion = 4; */ public Builder setCompilerVersionBytes( com.google.protobuf.ByteString value) { @@ -2183,7 +2214,7 @@ public Builder setCompilerVersionBytes( private java.lang.Object compilerOptions_ = ""; /** - * optional string compilerOptions = 5; + * string compilerOptions = 5; */ public java.lang.String getCompilerOptions() { java.lang.Object ref = compilerOptions_; @@ -2198,7 +2229,7 @@ public java.lang.String getCompilerOptions() { } } /** - * optional string compilerOptions = 5; + * string compilerOptions = 5; */ public com.google.protobuf.ByteString getCompilerOptionsBytes() { @@ -2214,7 +2245,7 @@ public java.lang.String getCompilerOptions() { } } /** - * optional string compilerOptions = 5; + * string compilerOptions = 5; */ public Builder setCompilerOptions( java.lang.String value) { @@ -2227,7 +2258,7 @@ public Builder setCompilerOptions( return this; } /** - * optional string compilerOptions = 5; + * string compilerOptions = 5; */ public Builder clearCompilerOptions() { @@ -2236,7 +2267,7 @@ public Builder clearCompilerOptions() { return this; } /** - * optional string compilerOptions = 5; + * string compilerOptions = 5; */ public Builder setCompilerOptionsBytes( com.google.protobuf.ByteString value) { @@ -2252,13 +2283,13 @@ public Builder setCompilerOptionsBytes( private com.google.protobuf.ByteString abiDef_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes abiDef = 6; + * bytes abiDef = 6; */ public com.google.protobuf.ByteString getAbiDef() { return abiDef_; } /** - * optional bytes abiDef = 6; + * bytes abiDef = 6; */ public Builder setAbiDef(com.google.protobuf.ByteString value) { if (value == null) { @@ -2270,7 +2301,7 @@ public Builder setAbiDef(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes abiDef = 6; + * bytes abiDef = 6; */ public Builder clearAbiDef() { @@ -2281,13 +2312,13 @@ public Builder clearAbiDef() { private com.google.protobuf.ByteString userDoc_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes userDoc = 7; + * bytes userDoc = 7; */ public com.google.protobuf.ByteString getUserDoc() { return userDoc_; } /** - * optional bytes userDoc = 7; + * bytes userDoc = 7; */ public Builder setUserDoc(com.google.protobuf.ByteString value) { if (value == null) { @@ -2299,7 +2330,7 @@ public Builder setUserDoc(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes userDoc = 7; + * bytes userDoc = 7; */ public Builder clearUserDoc() { @@ -2310,13 +2341,13 @@ public Builder clearUserDoc() { private com.google.protobuf.ByteString devDoc_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes devDoc = 8; + * bytes devDoc = 8; */ public com.google.protobuf.ByteString getDevDoc() { return devDoc_; } /** - * optional bytes devDoc = 8; + * bytes devDoc = 8; */ public Builder setDevDoc(com.google.protobuf.ByteString value) { if (value == null) { @@ -2328,7 +2359,7 @@ public Builder setDevDoc(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes devDoc = 8; + * bytes devDoc = 8; */ public Builder clearDevDoc() { @@ -2338,12 +2369,12 @@ public Builder clearDevDoc() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -2366,7 +2397,7 @@ 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); + return new t_Contract(input, extensionRegistry); } }; @@ -2390,42 +2421,42 @@ public interface t_AionTxOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ com.google.protobuf.ByteString getTxHash(); /** - * optional bytes from = 2; + * bytes from = 2; */ com.google.protobuf.ByteString getFrom(); /** - * optional bytes to = 3; + * bytes to = 3; */ com.google.protobuf.ByteString getTo(); /** - * optional bytes value = 4; + * bytes value = 4; */ com.google.protobuf.ByteString getValue(); /** - * optional bytes data = 5; + * bytes data = 5; */ com.google.protobuf.ByteString getData(); /** - * optional bytes nonce = 6; + * bytes nonce = 6; */ com.google.protobuf.ByteString getNonce(); /** - * optional uint64 nrgConsumed = 7; + * uint64 nrgConsumed = 7; */ long getNrgConsumed(); /** - * optional uint64 nrgPrice = 8; + * uint64 nrgPrice = 8; */ long getNrgPrice(); } @@ -2436,6 +2467,7 @@ 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); @@ -2454,14 +2486,19 @@ private t_AionTx() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -2471,7 +2508,8 @@ private t_AionTx( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -2524,6 +2562,7 @@ private t_AionTx( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -2542,7 +2581,7 @@ private t_AionTx( public static final int TXHASH_FIELD_NUMBER = 1; private com.google.protobuf.ByteString txHash_; /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ public com.google.protobuf.ByteString getTxHash() { return txHash_; @@ -2551,7 +2590,7 @@ public com.google.protobuf.ByteString getTxHash() { public static final int FROM_FIELD_NUMBER = 2; private com.google.protobuf.ByteString from_; /** - * optional bytes from = 2; + * bytes from = 2; */ public com.google.protobuf.ByteString getFrom() { return from_; @@ -2560,7 +2599,7 @@ public com.google.protobuf.ByteString getFrom() { public static final int TO_FIELD_NUMBER = 3; private com.google.protobuf.ByteString to_; /** - * optional bytes to = 3; + * bytes to = 3; */ public com.google.protobuf.ByteString getTo() { return to_; @@ -2569,7 +2608,7 @@ public com.google.protobuf.ByteString getTo() { public static final int VALUE_FIELD_NUMBER = 4; private com.google.protobuf.ByteString value_; /** - * optional bytes value = 4; + * bytes value = 4; */ public com.google.protobuf.ByteString getValue() { return value_; @@ -2578,7 +2617,7 @@ public com.google.protobuf.ByteString getValue() { public static final int DATA_FIELD_NUMBER = 5; private com.google.protobuf.ByteString data_; /** - * optional bytes data = 5; + * bytes data = 5; */ public com.google.protobuf.ByteString getData() { return data_; @@ -2587,7 +2626,7 @@ public com.google.protobuf.ByteString getData() { public static final int NONCE_FIELD_NUMBER = 6; private com.google.protobuf.ByteString nonce_; /** - * optional bytes nonce = 6; + * bytes nonce = 6; */ public com.google.protobuf.ByteString getNonce() { return nonce_; @@ -2596,7 +2635,7 @@ public com.google.protobuf.ByteString getNonce() { public static final int NRGCONSUMED_FIELD_NUMBER = 7; private long nrgConsumed_; /** - * optional uint64 nrgConsumed = 7; + * uint64 nrgConsumed = 7; */ public long getNrgConsumed() { return nrgConsumed_; @@ -2605,7 +2644,7 @@ public long getNrgConsumed() { public static final int NRGPRICE_FIELD_NUMBER = 8; private long nrgPrice_; /** - * optional uint64 nrgPrice = 8; + * uint64 nrgPrice = 8; */ public long getNrgPrice() { return nrgPrice_; @@ -2647,6 +2686,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (nrgPrice_ != 0L) { output.writeUInt64(8, nrgPrice_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -2686,11 +2726,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(8, nrgPrice_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -2718,6 +2758,7 @@ public boolean equals(final java.lang.Object obj) { == other.getNrgConsumed()); result = result && (getNrgPrice() == other.getNrgPrice()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -2727,7 +2768,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TXHASH_FIELD_NUMBER; hash = (53 * hash) + getTxHash().hashCode(); hash = (37 * hash) + FROM_FIELD_NUMBER; @@ -2751,6 +2792,17 @@ public int hashCode() { return hash; } + 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 { @@ -2919,7 +2971,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -2932,12 +2984,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -2975,6 +3027,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.t_AionTx other) { if (other.getNrgPrice() != 0L) { setNrgPrice(other.getNrgPrice()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -3003,13 +3056,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ public com.google.protobuf.ByteString getTxHash() { return txHash_; } /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ public Builder setTxHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -3021,7 +3074,7 @@ public Builder setTxHash(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ public Builder clearTxHash() { @@ -3032,13 +3085,13 @@ public Builder clearTxHash() { private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes from = 2; + * bytes from = 2; */ public com.google.protobuf.ByteString getFrom() { return from_; } /** - * optional bytes from = 2; + * bytes from = 2; */ public Builder setFrom(com.google.protobuf.ByteString value) { if (value == null) { @@ -3050,7 +3103,7 @@ public Builder setFrom(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes from = 2; + * bytes from = 2; */ public Builder clearFrom() { @@ -3061,13 +3114,13 @@ public Builder clearFrom() { private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes to = 3; + * bytes to = 3; */ public com.google.protobuf.ByteString getTo() { return to_; } /** - * optional bytes to = 3; + * bytes to = 3; */ public Builder setTo(com.google.protobuf.ByteString value) { if (value == null) { @@ -3079,7 +3132,7 @@ public Builder setTo(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes to = 3; + * bytes to = 3; */ public Builder clearTo() { @@ -3090,13 +3143,13 @@ public Builder clearTo() { private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes value = 4; + * bytes value = 4; */ public com.google.protobuf.ByteString getValue() { return value_; } /** - * optional bytes value = 4; + * bytes value = 4; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { @@ -3108,7 +3161,7 @@ public Builder setValue(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes value = 4; + * bytes value = 4; */ public Builder clearValue() { @@ -3119,13 +3172,13 @@ public Builder clearValue() { private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes data = 5; + * bytes data = 5; */ public com.google.protobuf.ByteString getData() { return data_; } /** - * optional bytes data = 5; + * bytes data = 5; */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { @@ -3137,7 +3190,7 @@ public Builder setData(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes data = 5; + * bytes data = 5; */ public Builder clearData() { @@ -3148,13 +3201,13 @@ public Builder clearData() { private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes nonce = 6; + * bytes nonce = 6; */ public com.google.protobuf.ByteString getNonce() { return nonce_; } /** - * optional bytes nonce = 6; + * bytes nonce = 6; */ public Builder setNonce(com.google.protobuf.ByteString value) { if (value == null) { @@ -3166,7 +3219,7 @@ public Builder setNonce(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes nonce = 6; + * bytes nonce = 6; */ public Builder clearNonce() { @@ -3177,13 +3230,13 @@ public Builder clearNonce() { private long nrgConsumed_ ; /** - * optional uint64 nrgConsumed = 7; + * uint64 nrgConsumed = 7; */ public long getNrgConsumed() { return nrgConsumed_; } /** - * optional uint64 nrgConsumed = 7; + * uint64 nrgConsumed = 7; */ public Builder setNrgConsumed(long value) { @@ -3192,7 +3245,7 @@ public Builder setNrgConsumed(long value) { return this; } /** - * optional uint64 nrgConsumed = 7; + * uint64 nrgConsumed = 7; */ public Builder clearNrgConsumed() { @@ -3203,13 +3256,13 @@ public Builder clearNrgConsumed() { private long nrgPrice_ ; /** - * optional uint64 nrgPrice = 8; + * uint64 nrgPrice = 8; */ public long getNrgPrice() { return nrgPrice_; } /** - * optional uint64 nrgPrice = 8; + * uint64 nrgPrice = 8; */ public Builder setNrgPrice(long value) { @@ -3218,7 +3271,7 @@ public Builder setNrgPrice(long value) { return this; } /** - * optional uint64 nrgPrice = 8; + * uint64 nrgPrice = 8; */ public Builder clearNrgPrice() { @@ -3228,12 +3281,12 @@ public Builder clearNrgPrice() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -3256,7 +3309,7 @@ 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); + return new t_AionTx(input, extensionRegistry); } }; @@ -3280,37 +3333,37 @@ public interface t_NodeOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ long getBlockNumber(); /** - * optional string nodeId = 2; + * string nodeId = 2; */ java.lang.String getNodeId(); /** - * optional string nodeId = 2; + * string nodeId = 2; */ com.google.protobuf.ByteString getNodeIdBytes(); /** - * optional string remote_p2p_ip = 3; + * string remote_p2p_ip = 3; */ java.lang.String getRemoteP2PIp(); /** - * optional string remote_p2p_ip = 3; + * string remote_p2p_ip = 3; */ com.google.protobuf.ByteString getRemoteP2PIpBytes(); /** - * optional uint32 remote_p2p_port = 4; + * uint32 remote_p2p_port = 4; */ int getRemoteP2PPort(); /** - * optional uint32 latency = 5; + * uint32 latency = 5; */ int getLatency(); } @@ -3321,6 +3374,7 @@ 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); @@ -3336,14 +3390,19 @@ private t_Node() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -3353,7 +3412,8 @@ private t_Node( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -3393,6 +3453,7 @@ private t_Node( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -3411,7 +3472,7 @@ private t_Node( public static final int BLOCKNUMBER_FIELD_NUMBER = 1; private long blockNumber_; /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public long getBlockNumber() { return blockNumber_; @@ -3420,7 +3481,7 @@ public long getBlockNumber() { public static final int NODEID_FIELD_NUMBER = 2; private volatile java.lang.Object nodeId_; /** - * optional string nodeId = 2; + * string nodeId = 2; */ public java.lang.String getNodeId() { java.lang.Object ref = nodeId_; @@ -3435,7 +3496,7 @@ public java.lang.String getNodeId() { } } /** - * optional string nodeId = 2; + * string nodeId = 2; */ public com.google.protobuf.ByteString getNodeIdBytes() { @@ -3454,7 +3515,7 @@ public java.lang.String getNodeId() { public static final int REMOTE_P2P_IP_FIELD_NUMBER = 3; private volatile java.lang.Object remoteP2PIp_; /** - * optional string remote_p2p_ip = 3; + * string remote_p2p_ip = 3; */ public java.lang.String getRemoteP2PIp() { java.lang.Object ref = remoteP2PIp_; @@ -3469,7 +3530,7 @@ public java.lang.String getRemoteP2PIp() { } } /** - * optional string remote_p2p_ip = 3; + * string remote_p2p_ip = 3; */ public com.google.protobuf.ByteString getRemoteP2PIpBytes() { @@ -3488,7 +3549,7 @@ public java.lang.String getRemoteP2PIp() { public static final int REMOTE_P2P_PORT_FIELD_NUMBER = 4; private int remoteP2PPort_; /** - * optional uint32 remote_p2p_port = 4; + * uint32 remote_p2p_port = 4; */ public int getRemoteP2PPort() { return remoteP2PPort_; @@ -3497,7 +3558,7 @@ public int getRemoteP2PPort() { public static final int LATENCY_FIELD_NUMBER = 5; private int latency_; /** - * optional uint32 latency = 5; + * uint32 latency = 5; */ public int getLatency() { return latency_; @@ -3530,6 +3591,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (latency_ != 0) { output.writeUInt32(5, latency_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -3555,11 +3617,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, latency_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -3581,6 +3643,7 @@ public boolean equals(final java.lang.Object obj) { == other.getRemoteP2PPort()); result = result && (getLatency() == other.getLatency()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -3590,7 +3653,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlockNumber()); @@ -3607,6 +3670,17 @@ public int hashCode() { 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); + } + 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 { @@ -3766,7 +3840,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -3779,12 +3853,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -3815,6 +3889,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.t_Node other) { if (other.getLatency() != 0) { setLatency(other.getLatency()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -3843,13 +3918,13 @@ public Builder mergeFrom( private long blockNumber_ ; /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public long getBlockNumber() { return blockNumber_; } /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public Builder setBlockNumber(long value) { @@ -3858,7 +3933,7 @@ public Builder setBlockNumber(long value) { return this; } /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public Builder clearBlockNumber() { @@ -3869,7 +3944,7 @@ public Builder clearBlockNumber() { private java.lang.Object nodeId_ = ""; /** - * optional string nodeId = 2; + * string nodeId = 2; */ public java.lang.String getNodeId() { java.lang.Object ref = nodeId_; @@ -3884,7 +3959,7 @@ public java.lang.String getNodeId() { } } /** - * optional string nodeId = 2; + * string nodeId = 2; */ public com.google.protobuf.ByteString getNodeIdBytes() { @@ -3900,7 +3975,7 @@ public java.lang.String getNodeId() { } } /** - * optional string nodeId = 2; + * string nodeId = 2; */ public Builder setNodeId( java.lang.String value) { @@ -3913,7 +3988,7 @@ public Builder setNodeId( return this; } /** - * optional string nodeId = 2; + * string nodeId = 2; */ public Builder clearNodeId() { @@ -3922,7 +3997,7 @@ public Builder clearNodeId() { return this; } /** - * optional string nodeId = 2; + * string nodeId = 2; */ public Builder setNodeIdBytes( com.google.protobuf.ByteString value) { @@ -3938,7 +4013,7 @@ public Builder setNodeIdBytes( private java.lang.Object remoteP2PIp_ = ""; /** - * optional string remote_p2p_ip = 3; + * string remote_p2p_ip = 3; */ public java.lang.String getRemoteP2PIp() { java.lang.Object ref = remoteP2PIp_; @@ -3953,7 +4028,7 @@ public java.lang.String getRemoteP2PIp() { } } /** - * optional string remote_p2p_ip = 3; + * string remote_p2p_ip = 3; */ public com.google.protobuf.ByteString getRemoteP2PIpBytes() { @@ -3969,7 +4044,7 @@ public java.lang.String getRemoteP2PIp() { } } /** - * optional string remote_p2p_ip = 3; + * string remote_p2p_ip = 3; */ public Builder setRemoteP2PIp( java.lang.String value) { @@ -3982,7 +4057,7 @@ public Builder setRemoteP2PIp( return this; } /** - * optional string remote_p2p_ip = 3; + * string remote_p2p_ip = 3; */ public Builder clearRemoteP2PIp() { @@ -3991,7 +4066,7 @@ public Builder clearRemoteP2PIp() { return this; } /** - * optional string remote_p2p_ip = 3; + * string remote_p2p_ip = 3; */ public Builder setRemoteP2PIpBytes( com.google.protobuf.ByteString value) { @@ -4007,13 +4082,13 @@ public Builder setRemoteP2PIpBytes( private int remoteP2PPort_ ; /** - * optional uint32 remote_p2p_port = 4; + * uint32 remote_p2p_port = 4; */ public int getRemoteP2PPort() { return remoteP2PPort_; } /** - * optional uint32 remote_p2p_port = 4; + * uint32 remote_p2p_port = 4; */ public Builder setRemoteP2PPort(int value) { @@ -4022,7 +4097,7 @@ public Builder setRemoteP2PPort(int value) { return this; } /** - * optional uint32 remote_p2p_port = 4; + * uint32 remote_p2p_port = 4; */ public Builder clearRemoteP2PPort() { @@ -4033,13 +4108,13 @@ public Builder clearRemoteP2PPort() { private int latency_ ; /** - * optional uint32 latency = 5; + * uint32 latency = 5; */ public int getLatency() { return latency_; } /** - * optional uint32 latency = 5; + * uint32 latency = 5; */ public Builder setLatency(int value) { @@ -4048,7 +4123,7 @@ public Builder setLatency(int value) { return this; } /** - * optional uint32 latency = 5; + * uint32 latency = 5; */ public Builder clearLatency() { @@ -4058,12 +4133,12 @@ public Builder clearLatency() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -4086,7 +4161,7 @@ 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); + return new t_Node(input, extensionRegistry); } }; @@ -4110,12 +4185,12 @@ public interface t_LgEleOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes address = 1; + * bytes address = 1; */ com.google.protobuf.ByteString getAddress(); /** - * optional bytes data = 2; + * bytes data = 2; */ com.google.protobuf.ByteString getData(); @@ -4145,6 +4220,7 @@ 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); @@ -4158,14 +4234,19 @@ private t_LgEle() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -4175,7 +4256,8 @@ private t_LgEle( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -4210,6 +4292,7 @@ private t_LgEle( if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { topics_ = topics_.getUnmodifiableView(); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -4229,7 +4312,7 @@ private t_LgEle( public static final int ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString address_; /** - * optional bytes address = 1; + * bytes address = 1; */ public com.google.protobuf.ByteString getAddress() { return address_; @@ -4238,7 +4321,7 @@ public com.google.protobuf.ByteString getAddress() { public static final int DATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString data_; /** - * optional bytes data = 2; + * bytes data = 2; */ public com.google.protobuf.ByteString getData() { return data_; @@ -4294,6 +4377,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < topics_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, topics_.getRaw(i)); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -4317,11 +4401,11 @@ public int getSerializedSize() { size += dataSize; size += 1 * getTopicsList().size(); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -4339,6 +4423,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getData()); result = result && getTopicsList() .equals(other.getTopicsList()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -4348,7 +4433,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); hash = (37 * hash) + DATA_FIELD_NUMBER; @@ -4362,6 +4447,17 @@ public int hashCode() { return hash; } + 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 { @@ -4522,7 +4618,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -4535,12 +4631,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -4570,6 +4666,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.t_LgEle other) { } onChanged(); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -4599,13 +4696,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes address = 1; + * bytes address = 1; */ public com.google.protobuf.ByteString getAddress() { return address_; } /** - * optional bytes address = 1; + * bytes address = 1; */ public Builder setAddress(com.google.protobuf.ByteString value) { if (value == null) { @@ -4617,7 +4714,7 @@ public Builder setAddress(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes address = 1; + * bytes address = 1; */ public Builder clearAddress() { @@ -4628,13 +4725,13 @@ public Builder clearAddress() { private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes data = 2; + * bytes data = 2; */ public com.google.protobuf.ByteString getData() { return data_; } /** - * optional bytes data = 2; + * bytes data = 2; */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { @@ -4646,7 +4743,7 @@ public Builder setData(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes data = 2; + * bytes data = 2; */ public Builder clearData() { @@ -4750,12 +4847,12 @@ public Builder addTopicsBytes( } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -4778,7 +4875,7 @@ 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); + return new t_LgEle(input, extensionRegistry); } }; @@ -4802,27 +4899,27 @@ public interface t_FilterCtOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional string from = 1; + * string from = 1; */ java.lang.String getFrom(); /** - * optional string from = 1; + * string from = 1; */ com.google.protobuf.ByteString getFromBytes(); /** - * optional string to = 2; + * string to = 2; */ java.lang.String getTo(); /** - * optional string to = 2; + * string to = 2; */ com.google.protobuf.ByteString getToBytes(); /** - * optional bytes contractAddr = 3; + * bytes contractAddr = 3; */ com.google.protobuf.ByteString getContractAddr(); @@ -4859,7 +4956,7 @@ public interface t_FilterCtOrBuilder extends getTopicsBytes(int index); /** - * optional uint64 expireTime = 6; + * uint64 expireTime = 6; */ long getExpireTime(); } @@ -4870,6 +4967,7 @@ 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); @@ -4886,14 +4984,19 @@ private t_FilterCt() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -4903,7 +5006,8 @@ private t_FilterCt( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -4961,6 +5065,7 @@ private t_FilterCt( if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { topics_ = topics_.getUnmodifiableView(); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -4980,7 +5085,7 @@ private t_FilterCt( public static final int FROM_FIELD_NUMBER = 1; private volatile java.lang.Object from_; /** - * optional string from = 1; + * string from = 1; */ public java.lang.String getFrom() { java.lang.Object ref = from_; @@ -4995,7 +5100,7 @@ public java.lang.String getFrom() { } } /** - * optional string from = 1; + * string from = 1; */ public com.google.protobuf.ByteString getFromBytes() { @@ -5014,7 +5119,7 @@ public java.lang.String getFrom() { public static final int TO_FIELD_NUMBER = 2; private volatile java.lang.Object to_; /** - * optional string to = 2; + * string to = 2; */ public java.lang.String getTo() { java.lang.Object ref = to_; @@ -5029,7 +5134,7 @@ public java.lang.String getTo() { } } /** - * optional string to = 2; + * string to = 2; */ public com.google.protobuf.ByteString getToBytes() { @@ -5048,7 +5153,7 @@ public java.lang.String getTo() { public static final int CONTRACTADDR_FIELD_NUMBER = 3; private com.google.protobuf.ByteString contractAddr_; /** - * optional bytes contractAddr = 3; + * bytes contractAddr = 3; */ public com.google.protobuf.ByteString getContractAddr() { return contractAddr_; @@ -5108,7 +5213,7 @@ public java.lang.String getTopics(int index) { public static final int EXPIRETIME_FIELD_NUMBER = 6; private long expireTime_; /** - * optional uint64 expireTime = 6; + * uint64 expireTime = 6; */ public long getExpireTime() { return expireTime_; @@ -5144,6 +5249,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (expireTime_ != 0L) { output.writeUInt64(6, expireTime_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -5182,11 +5288,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, expireTime_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -5210,6 +5316,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getTopicsList()); result = result && (getExpireTime() == other.getExpireTime()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -5219,7 +5326,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FROM_FIELD_NUMBER; hash = (53 * hash) + getFrom().hashCode(); hash = (37 * hash) + TO_FIELD_NUMBER; @@ -5242,6 +5349,17 @@ public int hashCode() { return hash; } + 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 { @@ -5415,7 +5533,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -5428,12 +5546,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -5481,6 +5599,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.t_FilterCt other) { if (other.getExpireTime() != 0L) { setExpireTime(other.getExpireTime()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -5510,7 +5629,7 @@ public Builder mergeFrom( private java.lang.Object from_ = ""; /** - * optional string from = 1; + * string from = 1; */ public java.lang.String getFrom() { java.lang.Object ref = from_; @@ -5525,7 +5644,7 @@ public java.lang.String getFrom() { } } /** - * optional string from = 1; + * string from = 1; */ public com.google.protobuf.ByteString getFromBytes() { @@ -5541,7 +5660,7 @@ public java.lang.String getFrom() { } } /** - * optional string from = 1; + * string from = 1; */ public Builder setFrom( java.lang.String value) { @@ -5554,7 +5673,7 @@ public Builder setFrom( return this; } /** - * optional string from = 1; + * string from = 1; */ public Builder clearFrom() { @@ -5563,7 +5682,7 @@ public Builder clearFrom() { return this; } /** - * optional string from = 1; + * string from = 1; */ public Builder setFromBytes( com.google.protobuf.ByteString value) { @@ -5579,7 +5698,7 @@ public Builder setFromBytes( private java.lang.Object to_ = ""; /** - * optional string to = 2; + * string to = 2; */ public java.lang.String getTo() { java.lang.Object ref = to_; @@ -5594,7 +5713,7 @@ public java.lang.String getTo() { } } /** - * optional string to = 2; + * string to = 2; */ public com.google.protobuf.ByteString getToBytes() { @@ -5610,7 +5729,7 @@ public java.lang.String getTo() { } } /** - * optional string to = 2; + * string to = 2; */ public Builder setTo( java.lang.String value) { @@ -5623,7 +5742,7 @@ public Builder setTo( return this; } /** - * optional string to = 2; + * string to = 2; */ public Builder clearTo() { @@ -5632,7 +5751,7 @@ public Builder clearTo() { return this; } /** - * optional string to = 2; + * string to = 2; */ public Builder setToBytes( com.google.protobuf.ByteString value) { @@ -5648,13 +5767,13 @@ public Builder setToBytes( private com.google.protobuf.ByteString contractAddr_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes contractAddr = 3; + * bytes contractAddr = 3; */ public com.google.protobuf.ByteString getContractAddr() { return contractAddr_; } /** - * optional bytes contractAddr = 3; + * bytes contractAddr = 3; */ public Builder setContractAddr(com.google.protobuf.ByteString value) { if (value == null) { @@ -5666,7 +5785,7 @@ public Builder setContractAddr(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes contractAddr = 3; + * bytes contractAddr = 3; */ public Builder clearContractAddr() { @@ -5843,13 +5962,13 @@ public Builder addTopicsBytes( private long expireTime_ ; /** - * optional uint64 expireTime = 6; + * uint64 expireTime = 6; */ public long getExpireTime() { return expireTime_; } /** - * optional uint64 expireTime = 6; + * uint64 expireTime = 6; */ public Builder setExpireTime(long value) { @@ -5858,7 +5977,7 @@ public Builder setExpireTime(long value) { return this; } /** - * optional uint64 expireTime = 6; + * uint64 expireTime = 6; */ public Builder clearExpireTime() { @@ -5868,12 +5987,12 @@ public Builder clearExpireTime() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -5896,7 +6015,7 @@ 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); + return new t_FilterCt(input, extensionRegistry); } }; @@ -5920,52 +6039,52 @@ public interface t_EventCtOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes address = 1; + * bytes address = 1; */ com.google.protobuf.ByteString getAddress(); /** - * optional bytes data = 2; + * bytes data = 2; */ com.google.protobuf.ByteString getData(); /** - * optional bytes blockHash = 3; + * bytes blockHash = 3; */ com.google.protobuf.ByteString getBlockHash(); /** - * optional uint64 blockNumber = 4; + * uint64 blockNumber = 4; */ long getBlockNumber(); /** - * optional uint32 logIndex = 5; + * uint32 logIndex = 5; */ int getLogIndex(); /** - * optional string eventName = 6; + * string eventName = 6; */ java.lang.String getEventName(); /** - * optional string eventName = 6; + * string eventName = 6; */ com.google.protobuf.ByteString getEventNameBytes(); /** - * optional bool removed = 7; + * bool removed = 7; */ boolean getRemoved(); /** - * optional uint32 txIndex = 8; + * uint32 txIndex = 8; */ int getTxIndex(); /** - * optional bytes txHash = 9; + * bytes txHash = 9; */ com.google.protobuf.ByteString getTxHash(); } @@ -5976,6 +6095,7 @@ 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); @@ -5995,14 +6115,19 @@ private t_EventCt() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -6012,7 +6137,8 @@ private t_EventCt( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -6071,6 +6197,7 @@ private t_EventCt( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -6089,7 +6216,7 @@ private t_EventCt( public static final int ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString address_; /** - * optional bytes address = 1; + * bytes address = 1; */ public com.google.protobuf.ByteString getAddress() { return address_; @@ -6098,7 +6225,7 @@ public com.google.protobuf.ByteString getAddress() { public static final int DATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString data_; /** - * optional bytes data = 2; + * bytes data = 2; */ public com.google.protobuf.ByteString getData() { return data_; @@ -6107,7 +6234,7 @@ public com.google.protobuf.ByteString getData() { public static final int BLOCKHASH_FIELD_NUMBER = 3; private com.google.protobuf.ByteString blockHash_; /** - * optional bytes blockHash = 3; + * bytes blockHash = 3; */ public com.google.protobuf.ByteString getBlockHash() { return blockHash_; @@ -6116,7 +6243,7 @@ public com.google.protobuf.ByteString getBlockHash() { public static final int BLOCKNUMBER_FIELD_NUMBER = 4; private long blockNumber_; /** - * optional uint64 blockNumber = 4; + * uint64 blockNumber = 4; */ public long getBlockNumber() { return blockNumber_; @@ -6125,7 +6252,7 @@ public long getBlockNumber() { public static final int LOGINDEX_FIELD_NUMBER = 5; private int logIndex_; /** - * optional uint32 logIndex = 5; + * uint32 logIndex = 5; */ public int getLogIndex() { return logIndex_; @@ -6134,7 +6261,7 @@ public int getLogIndex() { public static final int EVENTNAME_FIELD_NUMBER = 6; private volatile java.lang.Object eventName_; /** - * optional string eventName = 6; + * string eventName = 6; */ public java.lang.String getEventName() { java.lang.Object ref = eventName_; @@ -6149,7 +6276,7 @@ public java.lang.String getEventName() { } } /** - * optional string eventName = 6; + * string eventName = 6; */ public com.google.protobuf.ByteString getEventNameBytes() { @@ -6168,7 +6295,7 @@ public java.lang.String getEventName() { public static final int REMOVED_FIELD_NUMBER = 7; private boolean removed_; /** - * optional bool removed = 7; + * bool removed = 7; */ public boolean getRemoved() { return removed_; @@ -6177,7 +6304,7 @@ public boolean getRemoved() { public static final int TXINDEX_FIELD_NUMBER = 8; private int txIndex_; /** - * optional uint32 txIndex = 8; + * uint32 txIndex = 8; */ public int getTxIndex() { return txIndex_; @@ -6186,7 +6313,7 @@ public int getTxIndex() { public static final int TXHASH_FIELD_NUMBER = 9; private com.google.protobuf.ByteString txHash_; /** - * optional bytes txHash = 9; + * bytes txHash = 9; */ public com.google.protobuf.ByteString getTxHash() { return txHash_; @@ -6231,6 +6358,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!txHash_.isEmpty()) { output.writeBytes(9, txHash_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -6273,11 +6401,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, txHash_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -6307,6 +6435,7 @@ public boolean equals(final java.lang.Object obj) { == other.getTxIndex()); result = result && getTxHash() .equals(other.getTxHash()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -6316,7 +6445,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); hash = (37 * hash) + DATA_FIELD_NUMBER; @@ -6342,6 +6471,17 @@ public int hashCode() { return hash; } + 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 { @@ -6513,7 +6653,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -6526,12 +6666,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -6573,6 +6713,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.t_EventCt other) { if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { setTxHash(other.getTxHash()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -6601,13 +6742,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes address = 1; + * bytes address = 1; */ public com.google.protobuf.ByteString getAddress() { return address_; } /** - * optional bytes address = 1; + * bytes address = 1; */ public Builder setAddress(com.google.protobuf.ByteString value) { if (value == null) { @@ -6619,7 +6760,7 @@ public Builder setAddress(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes address = 1; + * bytes address = 1; */ public Builder clearAddress() { @@ -6630,13 +6771,13 @@ public Builder clearAddress() { private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes data = 2; + * bytes data = 2; */ public com.google.protobuf.ByteString getData() { return data_; } /** - * optional bytes data = 2; + * bytes data = 2; */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { @@ -6648,7 +6789,7 @@ public Builder setData(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes data = 2; + * bytes data = 2; */ public Builder clearData() { @@ -6659,13 +6800,13 @@ public Builder clearData() { private com.google.protobuf.ByteString blockHash_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes blockHash = 3; + * bytes blockHash = 3; */ public com.google.protobuf.ByteString getBlockHash() { return blockHash_; } /** - * optional bytes blockHash = 3; + * bytes blockHash = 3; */ public Builder setBlockHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -6677,7 +6818,7 @@ public Builder setBlockHash(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes blockHash = 3; + * bytes blockHash = 3; */ public Builder clearBlockHash() { @@ -6688,13 +6829,13 @@ public Builder clearBlockHash() { private long blockNumber_ ; /** - * optional uint64 blockNumber = 4; + * uint64 blockNumber = 4; */ public long getBlockNumber() { return blockNumber_; } /** - * optional uint64 blockNumber = 4; + * uint64 blockNumber = 4; */ public Builder setBlockNumber(long value) { @@ -6703,7 +6844,7 @@ public Builder setBlockNumber(long value) { return this; } /** - * optional uint64 blockNumber = 4; + * uint64 blockNumber = 4; */ public Builder clearBlockNumber() { @@ -6714,13 +6855,13 @@ public Builder clearBlockNumber() { private int logIndex_ ; /** - * optional uint32 logIndex = 5; + * uint32 logIndex = 5; */ public int getLogIndex() { return logIndex_; } /** - * optional uint32 logIndex = 5; + * uint32 logIndex = 5; */ public Builder setLogIndex(int value) { @@ -6729,7 +6870,7 @@ public Builder setLogIndex(int value) { return this; } /** - * optional uint32 logIndex = 5; + * uint32 logIndex = 5; */ public Builder clearLogIndex() { @@ -6740,7 +6881,7 @@ public Builder clearLogIndex() { private java.lang.Object eventName_ = ""; /** - * optional string eventName = 6; + * string eventName = 6; */ public java.lang.String getEventName() { java.lang.Object ref = eventName_; @@ -6755,7 +6896,7 @@ public java.lang.String getEventName() { } } /** - * optional string eventName = 6; + * string eventName = 6; */ public com.google.protobuf.ByteString getEventNameBytes() { @@ -6771,7 +6912,7 @@ public java.lang.String getEventName() { } } /** - * optional string eventName = 6; + * string eventName = 6; */ public Builder setEventName( java.lang.String value) { @@ -6784,7 +6925,7 @@ public Builder setEventName( return this; } /** - * optional string eventName = 6; + * string eventName = 6; */ public Builder clearEventName() { @@ -6793,7 +6934,7 @@ public Builder clearEventName() { return this; } /** - * optional string eventName = 6; + * string eventName = 6; */ public Builder setEventNameBytes( com.google.protobuf.ByteString value) { @@ -6809,13 +6950,13 @@ public Builder setEventNameBytes( private boolean removed_ ; /** - * optional bool removed = 7; + * bool removed = 7; */ public boolean getRemoved() { return removed_; } /** - * optional bool removed = 7; + * bool removed = 7; */ public Builder setRemoved(boolean value) { @@ -6824,7 +6965,7 @@ public Builder setRemoved(boolean value) { return this; } /** - * optional bool removed = 7; + * bool removed = 7; */ public Builder clearRemoved() { @@ -6835,13 +6976,13 @@ public Builder clearRemoved() { private int txIndex_ ; /** - * optional uint32 txIndex = 8; + * uint32 txIndex = 8; */ public int getTxIndex() { return txIndex_; } /** - * optional uint32 txIndex = 8; + * uint32 txIndex = 8; */ public Builder setTxIndex(int value) { @@ -6850,7 +6991,7 @@ public Builder setTxIndex(int value) { return this; } /** - * optional uint32 txIndex = 8; + * uint32 txIndex = 8; */ public Builder clearTxIndex() { @@ -6861,13 +7002,13 @@ public Builder clearTxIndex() { private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes txHash = 9; + * bytes txHash = 9; */ public com.google.protobuf.ByteString getTxHash() { return txHash_; } /** - * optional bytes txHash = 9; + * bytes txHash = 9; */ public Builder setTxHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -6879,7 +7020,7 @@ public Builder setTxHash(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes txHash = 9; + * bytes txHash = 9; */ public Builder clearTxHash() { @@ -6889,12 +7030,12 @@ public Builder clearTxHash() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -6917,7 +7058,7 @@ 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); + return new t_EventCt(input, extensionRegistry); } }; @@ -6941,87 +7082,87 @@ public interface t_BlockDetailOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ long getBlockNumber(); /** - * optional uint64 timestamp = 2; + * uint64 timestamp = 2; */ long getTimestamp(); /** - * optional uint64 nrgConsumed = 3; + * uint64 nrgConsumed = 3; */ long getNrgConsumed(); /** - * optional uint64 nrgLimit = 4; + * uint64 nrgLimit = 4; */ long getNrgLimit(); /** - * optional bytes parentHash = 5; + * bytes parentHash = 5; */ com.google.protobuf.ByteString getParentHash(); /** - * optional bytes minerAddress = 6; + * bytes minerAddress = 6; */ com.google.protobuf.ByteString getMinerAddress(); /** - * optional bytes stateRoot = 7; + * bytes stateRoot = 7; */ com.google.protobuf.ByteString getStateRoot(); /** - * optional bytes txTrieRoot = 8; + * bytes txTrieRoot = 8; */ com.google.protobuf.ByteString getTxTrieRoot(); /** - * optional bytes receiptTrieRoot = 9; + * bytes receiptTrieRoot = 9; */ com.google.protobuf.ByteString getReceiptTrieRoot(); /** - * optional bytes logsBloom = 10; + * bytes logsBloom = 10; */ com.google.protobuf.ByteString getLogsBloom(); /** - * optional bytes difficulty = 11; + * bytes difficulty = 11; */ com.google.protobuf.ByteString getDifficulty(); /** - * optional bytes totalDifficulty = 12; + * bytes totalDifficulty = 12; */ com.google.protobuf.ByteString getTotalDifficulty(); /** - * optional bytes extraData = 13; + * bytes extraData = 13; */ com.google.protobuf.ByteString getExtraData(); /** - * optional bytes nonce = 14; + * bytes nonce = 14; */ com.google.protobuf.ByteString getNonce(); /** - * optional bytes solution = 15; + * bytes solution = 15; */ com.google.protobuf.ByteString getSolution(); /** - * optional bytes hash = 16; + * bytes hash = 16; */ com.google.protobuf.ByteString getHash(); /** - * optional uint32 size = 17; + * uint32 size = 17; */ int getSize(); @@ -7050,7 +7191,7 @@ org.aion.api.server.pb.Message.t_TxDetailOrBuilder getTxOrBuilder( int index); /** - * optional uint64 blockTime = 19; + * uint64 blockTime = 19; */ long getBlockTime(); } @@ -7061,6 +7202,7 @@ 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); @@ -7090,14 +7232,19 @@ private t_BlockDetail() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -7107,7 +7254,8 @@ private t_BlockDetail( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -7222,6 +7370,7 @@ private t_BlockDetail( if (((mutable_bitField0_ & 0x00020000) == 0x00020000)) { tx_ = java.util.Collections.unmodifiableList(tx_); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -7241,7 +7390,7 @@ private t_BlockDetail( public static final int BLOCKNUMBER_FIELD_NUMBER = 1; private long blockNumber_; /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public long getBlockNumber() { return blockNumber_; @@ -7250,7 +7399,7 @@ public long getBlockNumber() { public static final int TIMESTAMP_FIELD_NUMBER = 2; private long timestamp_; /** - * optional uint64 timestamp = 2; + * uint64 timestamp = 2; */ public long getTimestamp() { return timestamp_; @@ -7259,7 +7408,7 @@ public long getTimestamp() { public static final int NRGCONSUMED_FIELD_NUMBER = 3; private long nrgConsumed_; /** - * optional uint64 nrgConsumed = 3; + * uint64 nrgConsumed = 3; */ public long getNrgConsumed() { return nrgConsumed_; @@ -7268,7 +7417,7 @@ public long getNrgConsumed() { public static final int NRGLIMIT_FIELD_NUMBER = 4; private long nrgLimit_; /** - * optional uint64 nrgLimit = 4; + * uint64 nrgLimit = 4; */ public long getNrgLimit() { return nrgLimit_; @@ -7277,7 +7426,7 @@ public long getNrgLimit() { public static final int PARENTHASH_FIELD_NUMBER = 5; private com.google.protobuf.ByteString parentHash_; /** - * optional bytes parentHash = 5; + * bytes parentHash = 5; */ public com.google.protobuf.ByteString getParentHash() { return parentHash_; @@ -7286,7 +7435,7 @@ public com.google.protobuf.ByteString getParentHash() { public static final int MINERADDRESS_FIELD_NUMBER = 6; private com.google.protobuf.ByteString minerAddress_; /** - * optional bytes minerAddress = 6; + * bytes minerAddress = 6; */ public com.google.protobuf.ByteString getMinerAddress() { return minerAddress_; @@ -7295,7 +7444,7 @@ public com.google.protobuf.ByteString getMinerAddress() { public static final int STATEROOT_FIELD_NUMBER = 7; private com.google.protobuf.ByteString stateRoot_; /** - * optional bytes stateRoot = 7; + * bytes stateRoot = 7; */ public com.google.protobuf.ByteString getStateRoot() { return stateRoot_; @@ -7304,7 +7453,7 @@ public com.google.protobuf.ByteString getStateRoot() { public static final int TXTRIEROOT_FIELD_NUMBER = 8; private com.google.protobuf.ByteString txTrieRoot_; /** - * optional bytes txTrieRoot = 8; + * bytes txTrieRoot = 8; */ public com.google.protobuf.ByteString getTxTrieRoot() { return txTrieRoot_; @@ -7313,7 +7462,7 @@ public com.google.protobuf.ByteString getTxTrieRoot() { public static final int RECEIPTTRIEROOT_FIELD_NUMBER = 9; private com.google.protobuf.ByteString receiptTrieRoot_; /** - * optional bytes receiptTrieRoot = 9; + * bytes receiptTrieRoot = 9; */ public com.google.protobuf.ByteString getReceiptTrieRoot() { return receiptTrieRoot_; @@ -7322,7 +7471,7 @@ public com.google.protobuf.ByteString getReceiptTrieRoot() { public static final int LOGSBLOOM_FIELD_NUMBER = 10; private com.google.protobuf.ByteString logsBloom_; /** - * optional bytes logsBloom = 10; + * bytes logsBloom = 10; */ public com.google.protobuf.ByteString getLogsBloom() { return logsBloom_; @@ -7331,7 +7480,7 @@ public com.google.protobuf.ByteString getLogsBloom() { public static final int DIFFICULTY_FIELD_NUMBER = 11; private com.google.protobuf.ByteString difficulty_; /** - * optional bytes difficulty = 11; + * bytes difficulty = 11; */ public com.google.protobuf.ByteString getDifficulty() { return difficulty_; @@ -7340,7 +7489,7 @@ public com.google.protobuf.ByteString getDifficulty() { public static final int TOTALDIFFICULTY_FIELD_NUMBER = 12; private com.google.protobuf.ByteString totalDifficulty_; /** - * optional bytes totalDifficulty = 12; + * bytes totalDifficulty = 12; */ public com.google.protobuf.ByteString getTotalDifficulty() { return totalDifficulty_; @@ -7349,7 +7498,7 @@ public com.google.protobuf.ByteString getTotalDifficulty() { public static final int EXTRADATA_FIELD_NUMBER = 13; private com.google.protobuf.ByteString extraData_; /** - * optional bytes extraData = 13; + * bytes extraData = 13; */ public com.google.protobuf.ByteString getExtraData() { return extraData_; @@ -7358,7 +7507,7 @@ public com.google.protobuf.ByteString getExtraData() { public static final int NONCE_FIELD_NUMBER = 14; private com.google.protobuf.ByteString nonce_; /** - * optional bytes nonce = 14; + * bytes nonce = 14; */ public com.google.protobuf.ByteString getNonce() { return nonce_; @@ -7367,7 +7516,7 @@ public com.google.protobuf.ByteString getNonce() { public static final int SOLUTION_FIELD_NUMBER = 15; private com.google.protobuf.ByteString solution_; /** - * optional bytes solution = 15; + * bytes solution = 15; */ public com.google.protobuf.ByteString getSolution() { return solution_; @@ -7376,7 +7525,7 @@ public com.google.protobuf.ByteString getSolution() { public static final int HASH_FIELD_NUMBER = 16; private com.google.protobuf.ByteString hash_; /** - * optional bytes hash = 16; + * bytes hash = 16; */ public com.google.protobuf.ByteString getHash() { return hash_; @@ -7385,7 +7534,7 @@ public com.google.protobuf.ByteString getHash() { public static final int SIZE_FIELD_NUMBER = 17; private int size_; /** - * optional uint32 size = 17; + * uint32 size = 17; */ public int getSize() { return size_; @@ -7429,7 +7578,7 @@ public org.aion.api.server.pb.Message.t_TxDetailOrBuilder getTxOrBuilder( public static final int BLOCKTIME_FIELD_NUMBER = 19; private long blockTime_; /** - * optional uint64 blockTime = 19; + * uint64 blockTime = 19; */ public long getBlockTime() { return blockTime_; @@ -7504,6 +7653,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (blockTime_ != 0L) { output.writeUInt64(19, blockTime_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -7587,11 +7737,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(19, blockTime_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -7641,6 +7791,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getTxList()); result = result && (getBlockTime() == other.getBlockTime()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -7650,7 +7801,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlockNumber()); @@ -7701,6 +7852,17 @@ public int hashCode() { 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.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 { @@ -7918,7 +8080,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -7931,12 +8093,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -8030,6 +8192,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.t_BlockDetail other) { if (other.getBlockTime() != 0L) { setBlockTime(other.getBlockTime()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -8059,13 +8222,13 @@ public Builder mergeFrom( private long blockNumber_ ; /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public long getBlockNumber() { return blockNumber_; } /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public Builder setBlockNumber(long value) { @@ -8074,7 +8237,7 @@ public Builder setBlockNumber(long value) { return this; } /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public Builder clearBlockNumber() { @@ -8085,13 +8248,13 @@ public Builder clearBlockNumber() { private long timestamp_ ; /** - * optional uint64 timestamp = 2; + * uint64 timestamp = 2; */ public long getTimestamp() { return timestamp_; } /** - * optional uint64 timestamp = 2; + * uint64 timestamp = 2; */ public Builder setTimestamp(long value) { @@ -8100,7 +8263,7 @@ public Builder setTimestamp(long value) { return this; } /** - * optional uint64 timestamp = 2; + * uint64 timestamp = 2; */ public Builder clearTimestamp() { @@ -8111,13 +8274,13 @@ public Builder clearTimestamp() { private long nrgConsumed_ ; /** - * optional uint64 nrgConsumed = 3; + * uint64 nrgConsumed = 3; */ public long getNrgConsumed() { return nrgConsumed_; } /** - * optional uint64 nrgConsumed = 3; + * uint64 nrgConsumed = 3; */ public Builder setNrgConsumed(long value) { @@ -8126,7 +8289,7 @@ public Builder setNrgConsumed(long value) { return this; } /** - * optional uint64 nrgConsumed = 3; + * uint64 nrgConsumed = 3; */ public Builder clearNrgConsumed() { @@ -8137,13 +8300,13 @@ public Builder clearNrgConsumed() { private long nrgLimit_ ; /** - * optional uint64 nrgLimit = 4; + * uint64 nrgLimit = 4; */ public long getNrgLimit() { return nrgLimit_; } /** - * optional uint64 nrgLimit = 4; + * uint64 nrgLimit = 4; */ public Builder setNrgLimit(long value) { @@ -8152,7 +8315,7 @@ public Builder setNrgLimit(long value) { return this; } /** - * optional uint64 nrgLimit = 4; + * uint64 nrgLimit = 4; */ public Builder clearNrgLimit() { @@ -8163,13 +8326,13 @@ public Builder clearNrgLimit() { private com.google.protobuf.ByteString parentHash_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes parentHash = 5; + * bytes parentHash = 5; */ public com.google.protobuf.ByteString getParentHash() { return parentHash_; } /** - * optional bytes parentHash = 5; + * bytes parentHash = 5; */ public Builder setParentHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -8181,7 +8344,7 @@ public Builder setParentHash(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes parentHash = 5; + * bytes parentHash = 5; */ public Builder clearParentHash() { @@ -8192,13 +8355,13 @@ public Builder clearParentHash() { private com.google.protobuf.ByteString minerAddress_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes minerAddress = 6; + * bytes minerAddress = 6; */ public com.google.protobuf.ByteString getMinerAddress() { return minerAddress_; } /** - * optional bytes minerAddress = 6; + * bytes minerAddress = 6; */ public Builder setMinerAddress(com.google.protobuf.ByteString value) { if (value == null) { @@ -8210,7 +8373,7 @@ public Builder setMinerAddress(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes minerAddress = 6; + * bytes minerAddress = 6; */ public Builder clearMinerAddress() { @@ -8221,13 +8384,13 @@ public Builder clearMinerAddress() { private com.google.protobuf.ByteString stateRoot_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes stateRoot = 7; + * bytes stateRoot = 7; */ public com.google.protobuf.ByteString getStateRoot() { return stateRoot_; } /** - * optional bytes stateRoot = 7; + * bytes stateRoot = 7; */ public Builder setStateRoot(com.google.protobuf.ByteString value) { if (value == null) { @@ -8239,7 +8402,7 @@ public Builder setStateRoot(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes stateRoot = 7; + * bytes stateRoot = 7; */ public Builder clearStateRoot() { @@ -8250,13 +8413,13 @@ public Builder clearStateRoot() { private com.google.protobuf.ByteString txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes txTrieRoot = 8; + * bytes txTrieRoot = 8; */ public com.google.protobuf.ByteString getTxTrieRoot() { return txTrieRoot_; } /** - * optional bytes txTrieRoot = 8; + * bytes txTrieRoot = 8; */ public Builder setTxTrieRoot(com.google.protobuf.ByteString value) { if (value == null) { @@ -8268,7 +8431,7 @@ public Builder setTxTrieRoot(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes txTrieRoot = 8; + * bytes txTrieRoot = 8; */ public Builder clearTxTrieRoot() { @@ -8279,13 +8442,13 @@ public Builder clearTxTrieRoot() { private com.google.protobuf.ByteString receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes receiptTrieRoot = 9; + * bytes receiptTrieRoot = 9; */ public com.google.protobuf.ByteString getReceiptTrieRoot() { return receiptTrieRoot_; } /** - * optional bytes receiptTrieRoot = 9; + * bytes receiptTrieRoot = 9; */ public Builder setReceiptTrieRoot(com.google.protobuf.ByteString value) { if (value == null) { @@ -8297,7 +8460,7 @@ public Builder setReceiptTrieRoot(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes receiptTrieRoot = 9; + * bytes receiptTrieRoot = 9; */ public Builder clearReceiptTrieRoot() { @@ -8308,13 +8471,13 @@ public Builder clearReceiptTrieRoot() { private com.google.protobuf.ByteString logsBloom_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes logsBloom = 10; + * bytes logsBloom = 10; */ public com.google.protobuf.ByteString getLogsBloom() { return logsBloom_; } /** - * optional bytes logsBloom = 10; + * bytes logsBloom = 10; */ public Builder setLogsBloom(com.google.protobuf.ByteString value) { if (value == null) { @@ -8326,7 +8489,7 @@ public Builder setLogsBloom(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes logsBloom = 10; + * bytes logsBloom = 10; */ public Builder clearLogsBloom() { @@ -8337,13 +8500,13 @@ public Builder clearLogsBloom() { private com.google.protobuf.ByteString difficulty_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes difficulty = 11; + * bytes difficulty = 11; */ public com.google.protobuf.ByteString getDifficulty() { return difficulty_; } /** - * optional bytes difficulty = 11; + * bytes difficulty = 11; */ public Builder setDifficulty(com.google.protobuf.ByteString value) { if (value == null) { @@ -8355,7 +8518,7 @@ public Builder setDifficulty(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes difficulty = 11; + * bytes difficulty = 11; */ public Builder clearDifficulty() { @@ -8366,13 +8529,13 @@ public Builder clearDifficulty() { private com.google.protobuf.ByteString totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes totalDifficulty = 12; + * bytes totalDifficulty = 12; */ public com.google.protobuf.ByteString getTotalDifficulty() { return totalDifficulty_; } /** - * optional bytes totalDifficulty = 12; + * bytes totalDifficulty = 12; */ public Builder setTotalDifficulty(com.google.protobuf.ByteString value) { if (value == null) { @@ -8384,7 +8547,7 @@ public Builder setTotalDifficulty(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes totalDifficulty = 12; + * bytes totalDifficulty = 12; */ public Builder clearTotalDifficulty() { @@ -8395,13 +8558,13 @@ public Builder clearTotalDifficulty() { private com.google.protobuf.ByteString extraData_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes extraData = 13; + * bytes extraData = 13; */ public com.google.protobuf.ByteString getExtraData() { return extraData_; } /** - * optional bytes extraData = 13; + * bytes extraData = 13; */ public Builder setExtraData(com.google.protobuf.ByteString value) { if (value == null) { @@ -8413,7 +8576,7 @@ public Builder setExtraData(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes extraData = 13; + * bytes extraData = 13; */ public Builder clearExtraData() { @@ -8424,13 +8587,13 @@ public Builder clearExtraData() { private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes nonce = 14; + * bytes nonce = 14; */ public com.google.protobuf.ByteString getNonce() { return nonce_; } /** - * optional bytes nonce = 14; + * bytes nonce = 14; */ public Builder setNonce(com.google.protobuf.ByteString value) { if (value == null) { @@ -8442,7 +8605,7 @@ public Builder setNonce(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes nonce = 14; + * bytes nonce = 14; */ public Builder clearNonce() { @@ -8453,13 +8616,13 @@ public Builder clearNonce() { private com.google.protobuf.ByteString solution_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes solution = 15; + * bytes solution = 15; */ public com.google.protobuf.ByteString getSolution() { return solution_; } /** - * optional bytes solution = 15; + * bytes solution = 15; */ public Builder setSolution(com.google.protobuf.ByteString value) { if (value == null) { @@ -8471,7 +8634,7 @@ public Builder setSolution(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes solution = 15; + * bytes solution = 15; */ public Builder clearSolution() { @@ -8482,13 +8645,13 @@ public Builder clearSolution() { private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes hash = 16; + * bytes hash = 16; */ public com.google.protobuf.ByteString getHash() { return hash_; } /** - * optional bytes hash = 16; + * bytes hash = 16; */ public Builder setHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -8500,7 +8663,7 @@ public Builder setHash(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes hash = 16; + * bytes hash = 16; */ public Builder clearHash() { @@ -8511,13 +8674,13 @@ public Builder clearHash() { private int size_ ; /** - * optional uint32 size = 17; + * uint32 size = 17; */ public int getSize() { return size_; } /** - * optional uint32 size = 17; + * uint32 size = 17; */ public Builder setSize(int value) { @@ -8526,7 +8689,7 @@ public Builder setSize(int value) { return this; } /** - * optional uint32 size = 17; + * uint32 size = 17; */ public Builder clearSize() { @@ -8777,13 +8940,13 @@ public org.aion.api.server.pb.Message.t_TxDetail.Builder addTxBuilder( private long blockTime_ ; /** - * optional uint64 blockTime = 19; + * uint64 blockTime = 19; */ public long getBlockTime() { return blockTime_; } /** - * optional uint64 blockTime = 19; + * uint64 blockTime = 19; */ public Builder setBlockTime(long value) { @@ -8792,7 +8955,7 @@ public Builder setBlockTime(long value) { return this; } /** - * optional uint64 blockTime = 19; + * uint64 blockTime = 19; */ public Builder clearBlockTime() { @@ -8802,12 +8965,12 @@ public Builder clearBlockTime() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -8830,7 +8993,7 @@ 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); + return new t_BlockDetail(input, extensionRegistry); } }; @@ -8854,52 +9017,52 @@ public interface t_TxDetailOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ com.google.protobuf.ByteString getTxHash(); /** - * optional bytes from = 2; + * bytes from = 2; */ com.google.protobuf.ByteString getFrom(); /** - * optional bytes to = 3; + * bytes to = 3; */ com.google.protobuf.ByteString getTo(); /** - * optional bytes value = 4; + * bytes value = 4; */ com.google.protobuf.ByteString getValue(); /** - * optional bytes data = 5; + * bytes data = 5; */ com.google.protobuf.ByteString getData(); /** - * optional bytes nonce = 6; + * bytes nonce = 6; */ com.google.protobuf.ByteString getNonce(); /** - * optional uint64 nrgConsumed = 7; + * uint64 nrgConsumed = 7; */ long getNrgConsumed(); /** - * optional uint64 nrgPrice = 8; + * uint64 nrgPrice = 8; */ long getNrgPrice(); /** - * optional uint32 txIndex = 9; + * uint32 txIndex = 9; */ int getTxIndex(); /** - * optional bytes contract = 10; + * bytes contract = 10; */ com.google.protobuf.ByteString getContract(); @@ -8928,16 +9091,16 @@ org.aion.api.server.pb.Message.t_LgEleOrBuilder getLogsOrBuilder( int index); /** - * optional uint64 timestamp = 12; + * uint64 timestamp = 12; */ long getTimestamp(); /** - * optional string error = 13; + * string error = 13; */ java.lang.String getError(); /** - * optional string error = 13; + * string error = 13; */ com.google.protobuf.ByteString getErrorBytes(); @@ -8949,6 +9112,7 @@ 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); @@ -8972,14 +9136,19 @@ private t_TxDetail() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -8989,7 +9158,8 @@ private t_TxDetail( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -9075,6 +9245,7 @@ private t_TxDetail( if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { logs_ = java.util.Collections.unmodifiableList(logs_); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -9094,7 +9265,7 @@ private t_TxDetail( public static final int TXHASH_FIELD_NUMBER = 1; private com.google.protobuf.ByteString txHash_; /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ public com.google.protobuf.ByteString getTxHash() { return txHash_; @@ -9103,7 +9274,7 @@ public com.google.protobuf.ByteString getTxHash() { public static final int FROM_FIELD_NUMBER = 2; private com.google.protobuf.ByteString from_; /** - * optional bytes from = 2; + * bytes from = 2; */ public com.google.protobuf.ByteString getFrom() { return from_; @@ -9112,7 +9283,7 @@ public com.google.protobuf.ByteString getFrom() { public static final int TO_FIELD_NUMBER = 3; private com.google.protobuf.ByteString to_; /** - * optional bytes to = 3; + * bytes to = 3; */ public com.google.protobuf.ByteString getTo() { return to_; @@ -9121,7 +9292,7 @@ public com.google.protobuf.ByteString getTo() { public static final int VALUE_FIELD_NUMBER = 4; private com.google.protobuf.ByteString value_; /** - * optional bytes value = 4; + * bytes value = 4; */ public com.google.protobuf.ByteString getValue() { return value_; @@ -9130,7 +9301,7 @@ public com.google.protobuf.ByteString getValue() { public static final int DATA_FIELD_NUMBER = 5; private com.google.protobuf.ByteString data_; /** - * optional bytes data = 5; + * bytes data = 5; */ public com.google.protobuf.ByteString getData() { return data_; @@ -9139,7 +9310,7 @@ public com.google.protobuf.ByteString getData() { public static final int NONCE_FIELD_NUMBER = 6; private com.google.protobuf.ByteString nonce_; /** - * optional bytes nonce = 6; + * bytes nonce = 6; */ public com.google.protobuf.ByteString getNonce() { return nonce_; @@ -9148,7 +9319,7 @@ public com.google.protobuf.ByteString getNonce() { public static final int NRGCONSUMED_FIELD_NUMBER = 7; private long nrgConsumed_; /** - * optional uint64 nrgConsumed = 7; + * uint64 nrgConsumed = 7; */ public long getNrgConsumed() { return nrgConsumed_; @@ -9157,7 +9328,7 @@ public long getNrgConsumed() { public static final int NRGPRICE_FIELD_NUMBER = 8; private long nrgPrice_; /** - * optional uint64 nrgPrice = 8; + * uint64 nrgPrice = 8; */ public long getNrgPrice() { return nrgPrice_; @@ -9166,7 +9337,7 @@ public long getNrgPrice() { public static final int TXINDEX_FIELD_NUMBER = 9; private int txIndex_; /** - * optional uint32 txIndex = 9; + * uint32 txIndex = 9; */ public int getTxIndex() { return txIndex_; @@ -9175,7 +9346,7 @@ public int getTxIndex() { public static final int CONTRACT_FIELD_NUMBER = 10; private com.google.protobuf.ByteString contract_; /** - * optional bytes contract = 10; + * bytes contract = 10; */ public com.google.protobuf.ByteString getContract() { return contract_; @@ -9219,7 +9390,7 @@ public org.aion.api.server.pb.Message.t_LgEleOrBuilder getLogsOrBuilder( public static final int TIMESTAMP_FIELD_NUMBER = 12; private long timestamp_; /** - * optional uint64 timestamp = 12; + * uint64 timestamp = 12; */ public long getTimestamp() { return timestamp_; @@ -9228,7 +9399,7 @@ public long getTimestamp() { public static final int ERROR_FIELD_NUMBER = 13; private volatile java.lang.Object error_; /** - * optional string error = 13; + * string error = 13; */ public java.lang.String getError() { java.lang.Object ref = error_; @@ -9243,7 +9414,7 @@ public java.lang.String getError() { } } /** - * optional string error = 13; + * string error = 13; */ public com.google.protobuf.ByteString getErrorBytes() { @@ -9310,6 +9481,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getErrorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, error_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -9368,11 +9540,11 @@ public int getSerializedSize() { if (!getErrorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, error_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -9410,6 +9582,7 @@ public boolean equals(final java.lang.Object obj) { == other.getTimestamp()); result = result && getError() .equals(other.getError()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -9419,7 +9592,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TXHASH_FIELD_NUMBER; hash = (53 * hash) + getTxHash().hashCode(); hash = (37 * hash) + FROM_FIELD_NUMBER; @@ -9456,6 +9629,17 @@ public int hashCode() { return hash; } + 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 { @@ -9655,7 +9839,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -9668,12 +9852,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -9750,6 +9934,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.t_TxDetail other) { error_ = other.error_; onChanged(); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -9779,13 +9964,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ public com.google.protobuf.ByteString getTxHash() { return txHash_; } /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ public Builder setTxHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -9797,7 +9982,7 @@ public Builder setTxHash(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ public Builder clearTxHash() { @@ -9808,13 +9993,13 @@ public Builder clearTxHash() { private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes from = 2; + * bytes from = 2; */ public com.google.protobuf.ByteString getFrom() { return from_; } /** - * optional bytes from = 2; + * bytes from = 2; */ public Builder setFrom(com.google.protobuf.ByteString value) { if (value == null) { @@ -9826,7 +10011,7 @@ public Builder setFrom(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes from = 2; + * bytes from = 2; */ public Builder clearFrom() { @@ -9837,13 +10022,13 @@ public Builder clearFrom() { private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes to = 3; + * bytes to = 3; */ public com.google.protobuf.ByteString getTo() { return to_; } /** - * optional bytes to = 3; + * bytes to = 3; */ public Builder setTo(com.google.protobuf.ByteString value) { if (value == null) { @@ -9855,7 +10040,7 @@ public Builder setTo(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes to = 3; + * bytes to = 3; */ public Builder clearTo() { @@ -9866,13 +10051,13 @@ public Builder clearTo() { private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes value = 4; + * bytes value = 4; */ public com.google.protobuf.ByteString getValue() { return value_; } /** - * optional bytes value = 4; + * bytes value = 4; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { @@ -9884,7 +10069,7 @@ public Builder setValue(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes value = 4; + * bytes value = 4; */ public Builder clearValue() { @@ -9895,13 +10080,13 @@ public Builder clearValue() { private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes data = 5; + * bytes data = 5; */ public com.google.protobuf.ByteString getData() { return data_; } /** - * optional bytes data = 5; + * bytes data = 5; */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { @@ -9913,7 +10098,7 @@ public Builder setData(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes data = 5; + * bytes data = 5; */ public Builder clearData() { @@ -9924,13 +10109,13 @@ public Builder clearData() { private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes nonce = 6; + * bytes nonce = 6; */ public com.google.protobuf.ByteString getNonce() { return nonce_; } /** - * optional bytes nonce = 6; + * bytes nonce = 6; */ public Builder setNonce(com.google.protobuf.ByteString value) { if (value == null) { @@ -9942,7 +10127,7 @@ public Builder setNonce(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes nonce = 6; + * bytes nonce = 6; */ public Builder clearNonce() { @@ -9953,13 +10138,13 @@ public Builder clearNonce() { private long nrgConsumed_ ; /** - * optional uint64 nrgConsumed = 7; + * uint64 nrgConsumed = 7; */ public long getNrgConsumed() { return nrgConsumed_; } /** - * optional uint64 nrgConsumed = 7; + * uint64 nrgConsumed = 7; */ public Builder setNrgConsumed(long value) { @@ -9968,7 +10153,7 @@ public Builder setNrgConsumed(long value) { return this; } /** - * optional uint64 nrgConsumed = 7; + * uint64 nrgConsumed = 7; */ public Builder clearNrgConsumed() { @@ -9979,13 +10164,13 @@ public Builder clearNrgConsumed() { private long nrgPrice_ ; /** - * optional uint64 nrgPrice = 8; + * uint64 nrgPrice = 8; */ public long getNrgPrice() { return nrgPrice_; } /** - * optional uint64 nrgPrice = 8; + * uint64 nrgPrice = 8; */ public Builder setNrgPrice(long value) { @@ -9994,7 +10179,7 @@ public Builder setNrgPrice(long value) { return this; } /** - * optional uint64 nrgPrice = 8; + * uint64 nrgPrice = 8; */ public Builder clearNrgPrice() { @@ -10005,13 +10190,13 @@ public Builder clearNrgPrice() { private int txIndex_ ; /** - * optional uint32 txIndex = 9; + * uint32 txIndex = 9; */ public int getTxIndex() { return txIndex_; } /** - * optional uint32 txIndex = 9; + * uint32 txIndex = 9; */ public Builder setTxIndex(int value) { @@ -10020,7 +10205,7 @@ public Builder setTxIndex(int value) { return this; } /** - * optional uint32 txIndex = 9; + * uint32 txIndex = 9; */ public Builder clearTxIndex() { @@ -10031,13 +10216,13 @@ public Builder clearTxIndex() { private com.google.protobuf.ByteString contract_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes contract = 10; + * bytes contract = 10; */ public com.google.protobuf.ByteString getContract() { return contract_; } /** - * optional bytes contract = 10; + * bytes contract = 10; */ public Builder setContract(com.google.protobuf.ByteString value) { if (value == null) { @@ -10049,7 +10234,7 @@ public Builder setContract(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes contract = 10; + * bytes contract = 10; */ public Builder clearContract() { @@ -10300,13 +10485,13 @@ public org.aion.api.server.pb.Message.t_LgEle.Builder addLogsBuilder( private long timestamp_ ; /** - * optional uint64 timestamp = 12; + * uint64 timestamp = 12; */ public long getTimestamp() { return timestamp_; } /** - * optional uint64 timestamp = 12; + * uint64 timestamp = 12; */ public Builder setTimestamp(long value) { @@ -10315,7 +10500,7 @@ public Builder setTimestamp(long value) { return this; } /** - * optional uint64 timestamp = 12; + * uint64 timestamp = 12; */ public Builder clearTimestamp() { @@ -10326,7 +10511,7 @@ public Builder clearTimestamp() { private java.lang.Object error_ = ""; /** - * optional string error = 13; + * string error = 13; */ public java.lang.String getError() { java.lang.Object ref = error_; @@ -10341,7 +10526,7 @@ public java.lang.String getError() { } } /** - * optional string error = 13; + * string error = 13; */ public com.google.protobuf.ByteString getErrorBytes() { @@ -10357,7 +10542,7 @@ public java.lang.String getError() { } } /** - * optional string error = 13; + * string error = 13; */ public Builder setError( java.lang.String value) { @@ -10370,7 +10555,7 @@ public Builder setError( return this; } /** - * optional string error = 13; + * string error = 13; */ public Builder clearError() { @@ -10379,7 +10564,7 @@ public Builder clearError() { return this; } /** - * optional string error = 13; + * string error = 13; */ public Builder setErrorBytes( com.google.protobuf.ByteString value) { @@ -10394,12 +10579,12 @@ public Builder setErrorBytes( } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -10422,7 +10607,7 @@ 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); + return new t_TxDetail(input, extensionRegistry); } }; @@ -10446,12 +10631,12 @@ public interface t_AccountDetailOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes address = 1; + * bytes address = 1; */ com.google.protobuf.ByteString getAddress(); /** - * optional bytes balance = 2; + * bytes balance = 2; */ com.google.protobuf.ByteString getBalance(); } @@ -10462,6 +10647,7 @@ 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); @@ -10474,14 +10660,19 @@ private t_AccountDetail() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -10491,7 +10682,8 @@ private t_AccountDetail( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -10514,6 +10706,7 @@ private t_AccountDetail( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -10532,7 +10725,7 @@ private t_AccountDetail( public static final int ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString address_; /** - * optional bytes address = 1; + * bytes address = 1; */ public com.google.protobuf.ByteString getAddress() { return address_; @@ -10541,7 +10734,7 @@ public com.google.protobuf.ByteString getAddress() { public static final int BALANCE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString balance_; /** - * optional bytes balance = 2; + * bytes balance = 2; */ public com.google.protobuf.ByteString getBalance() { return balance_; @@ -10565,6 +10758,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!balance_.isEmpty()) { output.writeBytes(2, balance_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -10580,11 +10774,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, balance_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -10600,6 +10794,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getAddress()); result = result && getBalance() .equals(other.getBalance()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -10609,7 +10804,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); hash = (37 * hash) + BALANCE_FIELD_NUMBER; @@ -10619,6 +10814,17 @@ public int hashCode() { return hash; } + 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 { @@ -10769,7 +10975,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -10782,12 +10988,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -10807,6 +11013,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.t_AccountDetail other) { if (other.getBalance() != com.google.protobuf.ByteString.EMPTY) { setBalance(other.getBalance()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -10835,13 +11042,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes address = 1; + * bytes address = 1; */ public com.google.protobuf.ByteString getAddress() { return address_; } /** - * optional bytes address = 1; + * bytes address = 1; */ public Builder setAddress(com.google.protobuf.ByteString value) { if (value == null) { @@ -10853,7 +11060,7 @@ public Builder setAddress(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes address = 1; + * bytes address = 1; */ public Builder clearAddress() { @@ -10864,13 +11071,13 @@ public Builder clearAddress() { private com.google.protobuf.ByteString balance_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes balance = 2; + * bytes balance = 2; */ public com.google.protobuf.ByteString getBalance() { return balance_; } /** - * optional bytes balance = 2; + * bytes balance = 2; */ public Builder setBalance(com.google.protobuf.ByteString value) { if (value == null) { @@ -10882,7 +11089,7 @@ public Builder setBalance(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes balance = 2; + * bytes balance = 2; */ public Builder clearBalance() { @@ -10892,12 +11099,12 @@ public Builder clearBalance() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -10920,7 +11127,7 @@ 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); + return new t_AccountDetail(input, extensionRegistry); } }; @@ -10944,87 +11151,87 @@ public interface t_BlockOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ long getBlockNumber(); /** - * optional uint64 timestamp = 2; + * uint64 timestamp = 2; */ long getTimestamp(); /** - * optional uint64 nrgConsumed = 3; + * uint64 nrgConsumed = 3; */ long getNrgConsumed(); /** - * optional uint64 nrgLimit = 4; + * uint64 nrgLimit = 4; */ long getNrgLimit(); /** - * optional bytes parentHash = 5; + * bytes parentHash = 5; */ com.google.protobuf.ByteString getParentHash(); /** - * optional bytes minerAddress = 6; + * bytes minerAddress = 6; */ com.google.protobuf.ByteString getMinerAddress(); /** - * optional bytes stateRoot = 7; + * bytes stateRoot = 7; */ com.google.protobuf.ByteString getStateRoot(); /** - * optional bytes txTrieRoot = 8; + * bytes txTrieRoot = 8; */ com.google.protobuf.ByteString getTxTrieRoot(); /** - * optional bytes receiptTrieRoot = 9; + * bytes receiptTrieRoot = 9; */ com.google.protobuf.ByteString getReceiptTrieRoot(); /** - * optional bytes logsBloom = 10; + * bytes logsBloom = 10; */ com.google.protobuf.ByteString getLogsBloom(); /** - * optional bytes difficulty = 11; + * bytes difficulty = 11; */ com.google.protobuf.ByteString getDifficulty(); /** - * optional bytes totalDifficulty = 12; + * bytes totalDifficulty = 12; */ com.google.protobuf.ByteString getTotalDifficulty(); /** - * optional bytes extraData = 13; + * bytes extraData = 13; */ com.google.protobuf.ByteString getExtraData(); /** - * optional bytes nonce = 14; + * bytes nonce = 14; */ com.google.protobuf.ByteString getNonce(); /** - * optional bytes solution = 15; + * bytes solution = 15; */ com.google.protobuf.ByteString getSolution(); /** - * optional bytes hash = 16; + * bytes hash = 16; */ com.google.protobuf.ByteString getHash(); /** - * optional uint32 size = 17; + * uint32 size = 17; */ int getSize(); @@ -11048,6 +11255,7 @@ 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); @@ -11076,14 +11284,19 @@ private t_Block() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -11093,7 +11306,8 @@ private t_Block( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -11202,6 +11416,7 @@ private t_Block( if (((mutable_bitField0_ & 0x00020000) == 0x00020000)) { txHash_ = java.util.Collections.unmodifiableList(txHash_); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -11221,7 +11436,7 @@ private t_Block( public static final int BLOCKNUMBER_FIELD_NUMBER = 1; private long blockNumber_; /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public long getBlockNumber() { return blockNumber_; @@ -11230,7 +11445,7 @@ public long getBlockNumber() { public static final int TIMESTAMP_FIELD_NUMBER = 2; private long timestamp_; /** - * optional uint64 timestamp = 2; + * uint64 timestamp = 2; */ public long getTimestamp() { return timestamp_; @@ -11239,7 +11454,7 @@ public long getTimestamp() { public static final int NRGCONSUMED_FIELD_NUMBER = 3; private long nrgConsumed_; /** - * optional uint64 nrgConsumed = 3; + * uint64 nrgConsumed = 3; */ public long getNrgConsumed() { return nrgConsumed_; @@ -11248,7 +11463,7 @@ public long getNrgConsumed() { public static final int NRGLIMIT_FIELD_NUMBER = 4; private long nrgLimit_; /** - * optional uint64 nrgLimit = 4; + * uint64 nrgLimit = 4; */ public long getNrgLimit() { return nrgLimit_; @@ -11257,7 +11472,7 @@ public long getNrgLimit() { public static final int PARENTHASH_FIELD_NUMBER = 5; private com.google.protobuf.ByteString parentHash_; /** - * optional bytes parentHash = 5; + * bytes parentHash = 5; */ public com.google.protobuf.ByteString getParentHash() { return parentHash_; @@ -11266,7 +11481,7 @@ public com.google.protobuf.ByteString getParentHash() { public static final int MINERADDRESS_FIELD_NUMBER = 6; private com.google.protobuf.ByteString minerAddress_; /** - * optional bytes minerAddress = 6; + * bytes minerAddress = 6; */ public com.google.protobuf.ByteString getMinerAddress() { return minerAddress_; @@ -11275,7 +11490,7 @@ public com.google.protobuf.ByteString getMinerAddress() { public static final int STATEROOT_FIELD_NUMBER = 7; private com.google.protobuf.ByteString stateRoot_; /** - * optional bytes stateRoot = 7; + * bytes stateRoot = 7; */ public com.google.protobuf.ByteString getStateRoot() { return stateRoot_; @@ -11284,7 +11499,7 @@ public com.google.protobuf.ByteString getStateRoot() { public static final int TXTRIEROOT_FIELD_NUMBER = 8; private com.google.protobuf.ByteString txTrieRoot_; /** - * optional bytes txTrieRoot = 8; + * bytes txTrieRoot = 8; */ public com.google.protobuf.ByteString getTxTrieRoot() { return txTrieRoot_; @@ -11293,7 +11508,7 @@ public com.google.protobuf.ByteString getTxTrieRoot() { public static final int RECEIPTTRIEROOT_FIELD_NUMBER = 9; private com.google.protobuf.ByteString receiptTrieRoot_; /** - * optional bytes receiptTrieRoot = 9; + * bytes receiptTrieRoot = 9; */ public com.google.protobuf.ByteString getReceiptTrieRoot() { return receiptTrieRoot_; @@ -11302,7 +11517,7 @@ public com.google.protobuf.ByteString getReceiptTrieRoot() { public static final int LOGSBLOOM_FIELD_NUMBER = 10; private com.google.protobuf.ByteString logsBloom_; /** - * optional bytes logsBloom = 10; + * bytes logsBloom = 10; */ public com.google.protobuf.ByteString getLogsBloom() { return logsBloom_; @@ -11311,7 +11526,7 @@ public com.google.protobuf.ByteString getLogsBloom() { public static final int DIFFICULTY_FIELD_NUMBER = 11; private com.google.protobuf.ByteString difficulty_; /** - * optional bytes difficulty = 11; + * bytes difficulty = 11; */ public com.google.protobuf.ByteString getDifficulty() { return difficulty_; @@ -11320,7 +11535,7 @@ public com.google.protobuf.ByteString getDifficulty() { public static final int TOTALDIFFICULTY_FIELD_NUMBER = 12; private com.google.protobuf.ByteString totalDifficulty_; /** - * optional bytes totalDifficulty = 12; + * bytes totalDifficulty = 12; */ public com.google.protobuf.ByteString getTotalDifficulty() { return totalDifficulty_; @@ -11329,7 +11544,7 @@ public com.google.protobuf.ByteString getTotalDifficulty() { public static final int EXTRADATA_FIELD_NUMBER = 13; private com.google.protobuf.ByteString extraData_; /** - * optional bytes extraData = 13; + * bytes extraData = 13; */ public com.google.protobuf.ByteString getExtraData() { return extraData_; @@ -11338,7 +11553,7 @@ public com.google.protobuf.ByteString getExtraData() { public static final int NONCE_FIELD_NUMBER = 14; private com.google.protobuf.ByteString nonce_; /** - * optional bytes nonce = 14; + * bytes nonce = 14; */ public com.google.protobuf.ByteString getNonce() { return nonce_; @@ -11347,7 +11562,7 @@ public com.google.protobuf.ByteString getNonce() { public static final int SOLUTION_FIELD_NUMBER = 15; private com.google.protobuf.ByteString solution_; /** - * optional bytes solution = 15; + * bytes solution = 15; */ public com.google.protobuf.ByteString getSolution() { return solution_; @@ -11356,7 +11571,7 @@ public com.google.protobuf.ByteString getSolution() { public static final int HASH_FIELD_NUMBER = 16; private com.google.protobuf.ByteString hash_; /** - * optional bytes hash = 16; + * bytes hash = 16; */ public com.google.protobuf.ByteString getHash() { return hash_; @@ -11365,7 +11580,7 @@ public com.google.protobuf.ByteString getHash() { public static final int SIZE_FIELD_NUMBER = 17; private int size_; /** - * optional uint32 size = 17; + * uint32 size = 17; */ public int getSize() { return size_; @@ -11459,6 +11674,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < txHash_.size(); i++) { output.writeBytes(18, txHash_.get(i)); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -11543,11 +11759,11 @@ public int getSerializedSize() { size += dataSize; size += 2 * getTxHashList().size(); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -11595,6 +11811,7 @@ public boolean equals(final java.lang.Object obj) { == other.getSize()); result = result && getTxHashList() .equals(other.getTxHashList()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -11604,7 +11821,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlockNumber()); @@ -11652,6 +11869,17 @@ public int hashCode() { return hash; } + 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 { @@ -11857,7 +12085,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -11870,12 +12098,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -11950,6 +12178,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.t_Block other) { } onChanged(); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -11979,13 +12208,13 @@ public Builder mergeFrom( private long blockNumber_ ; /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public long getBlockNumber() { return blockNumber_; } /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public Builder setBlockNumber(long value) { @@ -11994,7 +12223,7 @@ public Builder setBlockNumber(long value) { return this; } /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public Builder clearBlockNumber() { @@ -12005,13 +12234,13 @@ public Builder clearBlockNumber() { private long timestamp_ ; /** - * optional uint64 timestamp = 2; + * uint64 timestamp = 2; */ public long getTimestamp() { return timestamp_; } /** - * optional uint64 timestamp = 2; + * uint64 timestamp = 2; */ public Builder setTimestamp(long value) { @@ -12020,7 +12249,7 @@ public Builder setTimestamp(long value) { return this; } /** - * optional uint64 timestamp = 2; + * uint64 timestamp = 2; */ public Builder clearTimestamp() { @@ -12031,13 +12260,13 @@ public Builder clearTimestamp() { private long nrgConsumed_ ; /** - * optional uint64 nrgConsumed = 3; + * uint64 nrgConsumed = 3; */ public long getNrgConsumed() { return nrgConsumed_; } /** - * optional uint64 nrgConsumed = 3; + * uint64 nrgConsumed = 3; */ public Builder setNrgConsumed(long value) { @@ -12046,7 +12275,7 @@ public Builder setNrgConsumed(long value) { return this; } /** - * optional uint64 nrgConsumed = 3; + * uint64 nrgConsumed = 3; */ public Builder clearNrgConsumed() { @@ -12057,13 +12286,13 @@ public Builder clearNrgConsumed() { private long nrgLimit_ ; /** - * optional uint64 nrgLimit = 4; + * uint64 nrgLimit = 4; */ public long getNrgLimit() { return nrgLimit_; } /** - * optional uint64 nrgLimit = 4; + * uint64 nrgLimit = 4; */ public Builder setNrgLimit(long value) { @@ -12072,7 +12301,7 @@ public Builder setNrgLimit(long value) { return this; } /** - * optional uint64 nrgLimit = 4; + * uint64 nrgLimit = 4; */ public Builder clearNrgLimit() { @@ -12083,13 +12312,13 @@ public Builder clearNrgLimit() { private com.google.protobuf.ByteString parentHash_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes parentHash = 5; + * bytes parentHash = 5; */ public com.google.protobuf.ByteString getParentHash() { return parentHash_; } /** - * optional bytes parentHash = 5; + * bytes parentHash = 5; */ public Builder setParentHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -12101,7 +12330,7 @@ public Builder setParentHash(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes parentHash = 5; + * bytes parentHash = 5; */ public Builder clearParentHash() { @@ -12112,13 +12341,13 @@ public Builder clearParentHash() { private com.google.protobuf.ByteString minerAddress_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes minerAddress = 6; + * bytes minerAddress = 6; */ public com.google.protobuf.ByteString getMinerAddress() { return minerAddress_; } /** - * optional bytes minerAddress = 6; + * bytes minerAddress = 6; */ public Builder setMinerAddress(com.google.protobuf.ByteString value) { if (value == null) { @@ -12130,7 +12359,7 @@ public Builder setMinerAddress(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes minerAddress = 6; + * bytes minerAddress = 6; */ public Builder clearMinerAddress() { @@ -12141,13 +12370,13 @@ public Builder clearMinerAddress() { private com.google.protobuf.ByteString stateRoot_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes stateRoot = 7; + * bytes stateRoot = 7; */ public com.google.protobuf.ByteString getStateRoot() { return stateRoot_; } /** - * optional bytes stateRoot = 7; + * bytes stateRoot = 7; */ public Builder setStateRoot(com.google.protobuf.ByteString value) { if (value == null) { @@ -12159,7 +12388,7 @@ public Builder setStateRoot(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes stateRoot = 7; + * bytes stateRoot = 7; */ public Builder clearStateRoot() { @@ -12170,13 +12399,13 @@ public Builder clearStateRoot() { private com.google.protobuf.ByteString txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes txTrieRoot = 8; + * bytes txTrieRoot = 8; */ public com.google.protobuf.ByteString getTxTrieRoot() { return txTrieRoot_; } /** - * optional bytes txTrieRoot = 8; + * bytes txTrieRoot = 8; */ public Builder setTxTrieRoot(com.google.protobuf.ByteString value) { if (value == null) { @@ -12188,7 +12417,7 @@ public Builder setTxTrieRoot(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes txTrieRoot = 8; + * bytes txTrieRoot = 8; */ public Builder clearTxTrieRoot() { @@ -12199,13 +12428,13 @@ public Builder clearTxTrieRoot() { private com.google.protobuf.ByteString receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes receiptTrieRoot = 9; + * bytes receiptTrieRoot = 9; */ public com.google.protobuf.ByteString getReceiptTrieRoot() { return receiptTrieRoot_; } /** - * optional bytes receiptTrieRoot = 9; + * bytes receiptTrieRoot = 9; */ public Builder setReceiptTrieRoot(com.google.protobuf.ByteString value) { if (value == null) { @@ -12217,7 +12446,7 @@ public Builder setReceiptTrieRoot(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes receiptTrieRoot = 9; + * bytes receiptTrieRoot = 9; */ public Builder clearReceiptTrieRoot() { @@ -12228,13 +12457,13 @@ public Builder clearReceiptTrieRoot() { private com.google.protobuf.ByteString logsBloom_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes logsBloom = 10; + * bytes logsBloom = 10; */ public com.google.protobuf.ByteString getLogsBloom() { return logsBloom_; } /** - * optional bytes logsBloom = 10; + * bytes logsBloom = 10; */ public Builder setLogsBloom(com.google.protobuf.ByteString value) { if (value == null) { @@ -12246,7 +12475,7 @@ public Builder setLogsBloom(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes logsBloom = 10; + * bytes logsBloom = 10; */ public Builder clearLogsBloom() { @@ -12257,13 +12486,13 @@ public Builder clearLogsBloom() { private com.google.protobuf.ByteString difficulty_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes difficulty = 11; + * bytes difficulty = 11; */ public com.google.protobuf.ByteString getDifficulty() { return difficulty_; } /** - * optional bytes difficulty = 11; + * bytes difficulty = 11; */ public Builder setDifficulty(com.google.protobuf.ByteString value) { if (value == null) { @@ -12275,7 +12504,7 @@ public Builder setDifficulty(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes difficulty = 11; + * bytes difficulty = 11; */ public Builder clearDifficulty() { @@ -12286,13 +12515,13 @@ public Builder clearDifficulty() { private com.google.protobuf.ByteString totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes totalDifficulty = 12; + * bytes totalDifficulty = 12; */ public com.google.protobuf.ByteString getTotalDifficulty() { return totalDifficulty_; } /** - * optional bytes totalDifficulty = 12; + * bytes totalDifficulty = 12; */ public Builder setTotalDifficulty(com.google.protobuf.ByteString value) { if (value == null) { @@ -12304,7 +12533,7 @@ public Builder setTotalDifficulty(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes totalDifficulty = 12; + * bytes totalDifficulty = 12; */ public Builder clearTotalDifficulty() { @@ -12315,13 +12544,13 @@ public Builder clearTotalDifficulty() { private com.google.protobuf.ByteString extraData_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes extraData = 13; + * bytes extraData = 13; */ public com.google.protobuf.ByteString getExtraData() { return extraData_; } /** - * optional bytes extraData = 13; + * bytes extraData = 13; */ public Builder setExtraData(com.google.protobuf.ByteString value) { if (value == null) { @@ -12333,7 +12562,7 @@ public Builder setExtraData(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes extraData = 13; + * bytes extraData = 13; */ public Builder clearExtraData() { @@ -12344,13 +12573,13 @@ public Builder clearExtraData() { private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes nonce = 14; + * bytes nonce = 14; */ public com.google.protobuf.ByteString getNonce() { return nonce_; } /** - * optional bytes nonce = 14; + * bytes nonce = 14; */ public Builder setNonce(com.google.protobuf.ByteString value) { if (value == null) { @@ -12362,7 +12591,7 @@ public Builder setNonce(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes nonce = 14; + * bytes nonce = 14; */ public Builder clearNonce() { @@ -12373,13 +12602,13 @@ public Builder clearNonce() { private com.google.protobuf.ByteString solution_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes solution = 15; + * bytes solution = 15; */ public com.google.protobuf.ByteString getSolution() { return solution_; } /** - * optional bytes solution = 15; + * bytes solution = 15; */ public Builder setSolution(com.google.protobuf.ByteString value) { if (value == null) { @@ -12391,7 +12620,7 @@ public Builder setSolution(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes solution = 15; + * bytes solution = 15; */ public Builder clearSolution() { @@ -12402,13 +12631,13 @@ public Builder clearSolution() { private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes hash = 16; + * bytes hash = 16; */ public com.google.protobuf.ByteString getHash() { return hash_; } /** - * optional bytes hash = 16; + * bytes hash = 16; */ public Builder setHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -12420,7 +12649,7 @@ public Builder setHash(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes hash = 16; + * bytes hash = 16; */ public Builder clearHash() { @@ -12431,13 +12660,13 @@ public Builder clearHash() { private int size_ ; /** - * optional uint32 size = 17; + * uint32 size = 17; */ public int getSize() { return size_; } /** - * optional uint32 size = 17; + * uint32 size = 17; */ public Builder setSize(int value) { @@ -12446,7 +12675,7 @@ public Builder setSize(int value) { return this; } /** - * optional uint32 size = 17; + * uint32 size = 17; */ public Builder clearSize() { @@ -12528,12 +12757,12 @@ public Builder clearTxHash() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -12556,7 +12785,7 @@ 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); + return new t_Block(input, extensionRegistry); } }; @@ -12580,36 +12809,36 @@ public interface t_BlockSqlOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ long getBlockNumber(); /** - * optional string blockHash = 2; + * string blockHash = 2; */ java.lang.String getBlockHash(); /** - * optional string blockHash = 2; + * string blockHash = 2; */ com.google.protobuf.ByteString getBlockHashBytes(); /** - * optional string parentHash = 3; + * string parentHash = 3; */ java.lang.String getParentHash(); /** - * optional string parentHash = 3; + * string parentHash = 3; */ com.google.protobuf.ByteString getParentHashBytes(); /** - * optional string block = 4; + * string block = 4; */ java.lang.String getBlock(); /** - * optional string block = 4; + * string block = 4; */ com.google.protobuf.ByteString getBlockBytes(); @@ -12640,6 +12869,7 @@ 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); @@ -12655,14 +12885,19 @@ private t_BlockSql() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -12672,7 +12907,8 @@ private t_BlockSql( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -12720,6 +12956,7 @@ private t_BlockSql( if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { tx_ = tx_.getUnmodifiableView(); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -12739,7 +12976,7 @@ private t_BlockSql( public static final int BLOCKNUMBER_FIELD_NUMBER = 1; private long blockNumber_; /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public long getBlockNumber() { return blockNumber_; @@ -12748,7 +12985,7 @@ public long getBlockNumber() { public static final int BLOCKHASH_FIELD_NUMBER = 2; private volatile java.lang.Object blockHash_; /** - * optional string blockHash = 2; + * string blockHash = 2; */ public java.lang.String getBlockHash() { java.lang.Object ref = blockHash_; @@ -12763,7 +13000,7 @@ public java.lang.String getBlockHash() { } } /** - * optional string blockHash = 2; + * string blockHash = 2; */ public com.google.protobuf.ByteString getBlockHashBytes() { @@ -12782,7 +13019,7 @@ public java.lang.String getBlockHash() { public static final int PARENTHASH_FIELD_NUMBER = 3; private volatile java.lang.Object parentHash_; /** - * optional string parentHash = 3; + * string parentHash = 3; */ public java.lang.String getParentHash() { java.lang.Object ref = parentHash_; @@ -12797,7 +13034,7 @@ public java.lang.String getParentHash() { } } /** - * optional string parentHash = 3; + * string parentHash = 3; */ public com.google.protobuf.ByteString getParentHashBytes() { @@ -12816,7 +13053,7 @@ public java.lang.String getParentHash() { public static final int BLOCK_FIELD_NUMBER = 4; private volatile java.lang.Object block_; /** - * optional string block = 4; + * string block = 4; */ public java.lang.String getBlock() { java.lang.Object ref = block_; @@ -12831,7 +13068,7 @@ public java.lang.String getBlock() { } } /** - * optional string block = 4; + * string block = 4; */ public com.google.protobuf.ByteString getBlockBytes() { @@ -12903,6 +13140,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < tx_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, tx_.getRaw(i)); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -12931,11 +13169,11 @@ public int getSerializedSize() { size += dataSize; size += 1 * getTxList().size(); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -12957,6 +13195,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getBlock()); result = result && getTxList() .equals(other.getTxList()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -12966,7 +13205,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlockNumber()); @@ -12985,6 +13224,17 @@ public int hashCode() { return hash; } + 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 { @@ -13151,7 +13401,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -13164,12 +13414,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -13208,6 +13458,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.t_BlockSql other) { } onChanged(); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -13237,13 +13488,13 @@ public Builder mergeFrom( private long blockNumber_ ; /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public long getBlockNumber() { return blockNumber_; } /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public Builder setBlockNumber(long value) { @@ -13252,7 +13503,7 @@ public Builder setBlockNumber(long value) { return this; } /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public Builder clearBlockNumber() { @@ -13263,7 +13514,7 @@ public Builder clearBlockNumber() { private java.lang.Object blockHash_ = ""; /** - * optional string blockHash = 2; + * string blockHash = 2; */ public java.lang.String getBlockHash() { java.lang.Object ref = blockHash_; @@ -13278,7 +13529,7 @@ public java.lang.String getBlockHash() { } } /** - * optional string blockHash = 2; + * string blockHash = 2; */ public com.google.protobuf.ByteString getBlockHashBytes() { @@ -13294,7 +13545,7 @@ public java.lang.String getBlockHash() { } } /** - * optional string blockHash = 2; + * string blockHash = 2; */ public Builder setBlockHash( java.lang.String value) { @@ -13307,7 +13558,7 @@ public Builder setBlockHash( return this; } /** - * optional string blockHash = 2; + * string blockHash = 2; */ public Builder clearBlockHash() { @@ -13316,7 +13567,7 @@ public Builder clearBlockHash() { return this; } /** - * optional string blockHash = 2; + * string blockHash = 2; */ public Builder setBlockHashBytes( com.google.protobuf.ByteString value) { @@ -13332,7 +13583,7 @@ public Builder setBlockHashBytes( private java.lang.Object parentHash_ = ""; /** - * optional string parentHash = 3; + * string parentHash = 3; */ public java.lang.String getParentHash() { java.lang.Object ref = parentHash_; @@ -13347,7 +13598,7 @@ public java.lang.String getParentHash() { } } /** - * optional string parentHash = 3; + * string parentHash = 3; */ public com.google.protobuf.ByteString getParentHashBytes() { @@ -13363,7 +13614,7 @@ public java.lang.String getParentHash() { } } /** - * optional string parentHash = 3; + * string parentHash = 3; */ public Builder setParentHash( java.lang.String value) { @@ -13376,7 +13627,7 @@ public Builder setParentHash( return this; } /** - * optional string parentHash = 3; + * string parentHash = 3; */ public Builder clearParentHash() { @@ -13385,7 +13636,7 @@ public Builder clearParentHash() { return this; } /** - * optional string parentHash = 3; + * string parentHash = 3; */ public Builder setParentHashBytes( com.google.protobuf.ByteString value) { @@ -13401,7 +13652,7 @@ public Builder setParentHashBytes( private java.lang.Object block_ = ""; /** - * optional string block = 4; + * string block = 4; */ public java.lang.String getBlock() { java.lang.Object ref = block_; @@ -13416,7 +13667,7 @@ public java.lang.String getBlock() { } } /** - * optional string block = 4; + * string block = 4; */ public com.google.protobuf.ByteString getBlockBytes() { @@ -13432,7 +13683,7 @@ public java.lang.String getBlock() { } } /** - * optional string block = 4; + * string block = 4; */ public Builder setBlock( java.lang.String value) { @@ -13445,7 +13696,7 @@ public Builder setBlock( return this; } /** - * optional string block = 4; + * string block = 4; */ public Builder clearBlock() { @@ -13454,7 +13705,7 @@ public Builder clearBlock() { return this; } /** - * optional string block = 4; + * string block = 4; */ public Builder setBlockBytes( com.google.protobuf.ByteString value) { @@ -13563,12 +13814,12 @@ public Builder addTxBytes( } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -13591,7 +13842,7 @@ 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); + return new t_BlockSql(input, extensionRegistry); } }; @@ -13615,11 +13866,11 @@ public interface rsp_errormsgOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional string errormsg = 1; + * string errormsg = 1; */ java.lang.String getErrormsg(); /** - * optional string errormsg = 1; + * string errormsg = 1; */ com.google.protobuf.ByteString getErrormsgBytes(); @@ -13631,6 +13882,7 @@ 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); @@ -13642,14 +13894,19 @@ private rsp_errormsg() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -13659,7 +13916,8 @@ private rsp_errormsg( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -13678,6 +13936,7 @@ private rsp_errormsg( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -13696,7 +13955,7 @@ private rsp_errormsg( public static final int ERRORMSG_FIELD_NUMBER = 1; private volatile java.lang.Object errormsg_; /** - * optional string errormsg = 1; + * string errormsg = 1; */ public java.lang.String getErrormsg() { java.lang.Object ref = errormsg_; @@ -13711,7 +13970,7 @@ public java.lang.String getErrormsg() { } } /** - * optional string errormsg = 1; + * string errormsg = 1; */ public com.google.protobuf.ByteString getErrormsgBytes() { @@ -13742,6 +14001,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getErrormsgBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, errormsg_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -13752,11 +14012,11 @@ public int getSerializedSize() { if (!getErrormsgBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, errormsg_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -13770,6 +14030,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getErrormsg() .equals(other.getErrormsg()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -13779,7 +14040,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ERRORMSG_FIELD_NUMBER; hash = (53 * hash) + getErrormsg().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -13787,6 +14048,17 @@ public int hashCode() { return hash; } + 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 { @@ -13934,7 +14206,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -13947,12 +14219,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -13970,6 +14242,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_errormsg other) { errormsg_ = other.errormsg_; onChanged(); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -13998,7 +14271,7 @@ public Builder mergeFrom( private java.lang.Object errormsg_ = ""; /** - * optional string errormsg = 1; + * string errormsg = 1; */ public java.lang.String getErrormsg() { java.lang.Object ref = errormsg_; @@ -14013,7 +14286,7 @@ public java.lang.String getErrormsg() { } } /** - * optional string errormsg = 1; + * string errormsg = 1; */ public com.google.protobuf.ByteString getErrormsgBytes() { @@ -14029,7 +14302,7 @@ public java.lang.String getErrormsg() { } } /** - * optional string errormsg = 1; + * string errormsg = 1; */ public Builder setErrormsg( java.lang.String value) { @@ -14042,7 +14315,7 @@ public Builder setErrormsg( return this; } /** - * optional string errormsg = 1; + * string errormsg = 1; */ public Builder clearErrormsg() { @@ -14051,7 +14324,7 @@ public Builder clearErrormsg() { return this; } /** - * optional string errormsg = 1; + * string errormsg = 1; */ public Builder setErrormsgBytes( com.google.protobuf.ByteString value) { @@ -14066,12 +14339,12 @@ public Builder setErrormsgBytes( } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -14094,7 +14367,7 @@ 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); + return new rsp_errormsg(input, extensionRegistry); } }; @@ -14118,71 +14391,71 @@ public interface rsp_protocolVersionOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional string kernel = 1; + * string kernel = 1; */ java.lang.String getKernel(); /** - * optional string kernel = 1; + * string kernel = 1; */ com.google.protobuf.ByteString getKernelBytes(); /** - * optional string net = 2; + * string net = 2; */ java.lang.String getNet(); /** - * optional string net = 2; + * string net = 2; */ com.google.protobuf.ByteString getNetBytes(); /** - * optional string api = 3; + * string api = 3; */ java.lang.String getApi(); /** - * optional string api = 3; + * string api = 3; */ com.google.protobuf.ByteString getApiBytes(); /** - * optional string vm = 4; + * string vm = 4; */ java.lang.String getVm(); /** - * optional string vm = 4; + * string vm = 4; */ com.google.protobuf.ByteString getVmBytes(); /** - * optional string db = 5; + * string db = 5; */ java.lang.String getDb(); /** - * optional string db = 5; + * string db = 5; */ com.google.protobuf.ByteString getDbBytes(); /** - * optional string miner = 6; + * string miner = 6; */ java.lang.String getMiner(); /** - * optional string miner = 6; + * string miner = 6; */ com.google.protobuf.ByteString getMinerBytes(); /** - * optional string txpool = 7; + * string txpool = 7; */ java.lang.String getTxpool(); /** - * optional string txpool = 7; + * string txpool = 7; */ com.google.protobuf.ByteString getTxpoolBytes(); @@ -14194,6 +14467,7 @@ 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); @@ -14211,14 +14485,19 @@ private rsp_protocolVersion() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -14228,7 +14507,8 @@ private rsp_protocolVersion( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -14283,6 +14563,7 @@ private rsp_protocolVersion( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -14301,7 +14582,7 @@ private rsp_protocolVersion( public static final int KERNEL_FIELD_NUMBER = 1; private volatile java.lang.Object kernel_; /** - * optional string kernel = 1; + * string kernel = 1; */ public java.lang.String getKernel() { java.lang.Object ref = kernel_; @@ -14316,7 +14597,7 @@ public java.lang.String getKernel() { } } /** - * optional string kernel = 1; + * string kernel = 1; */ public com.google.protobuf.ByteString getKernelBytes() { @@ -14335,7 +14616,7 @@ public java.lang.String getKernel() { public static final int NET_FIELD_NUMBER = 2; private volatile java.lang.Object net_; /** - * optional string net = 2; + * string net = 2; */ public java.lang.String getNet() { java.lang.Object ref = net_; @@ -14350,7 +14631,7 @@ public java.lang.String getNet() { } } /** - * optional string net = 2; + * string net = 2; */ public com.google.protobuf.ByteString getNetBytes() { @@ -14369,7 +14650,7 @@ public java.lang.String getNet() { public static final int API_FIELD_NUMBER = 3; private volatile java.lang.Object api_; /** - * optional string api = 3; + * string api = 3; */ public java.lang.String getApi() { java.lang.Object ref = api_; @@ -14384,7 +14665,7 @@ public java.lang.String getApi() { } } /** - * optional string api = 3; + * string api = 3; */ public com.google.protobuf.ByteString getApiBytes() { @@ -14403,7 +14684,7 @@ public java.lang.String getApi() { public static final int VM_FIELD_NUMBER = 4; private volatile java.lang.Object vm_; /** - * optional string vm = 4; + * string vm = 4; */ public java.lang.String getVm() { java.lang.Object ref = vm_; @@ -14418,7 +14699,7 @@ public java.lang.String getVm() { } } /** - * optional string vm = 4; + * string vm = 4; */ public com.google.protobuf.ByteString getVmBytes() { @@ -14437,7 +14718,7 @@ public java.lang.String getVm() { public static final int DB_FIELD_NUMBER = 5; private volatile java.lang.Object db_; /** - * optional string db = 5; + * string db = 5; */ public java.lang.String getDb() { java.lang.Object ref = db_; @@ -14452,7 +14733,7 @@ public java.lang.String getDb() { } } /** - * optional string db = 5; + * string db = 5; */ public com.google.protobuf.ByteString getDbBytes() { @@ -14471,7 +14752,7 @@ public java.lang.String getDb() { public static final int MINER_FIELD_NUMBER = 6; private volatile java.lang.Object miner_; /** - * optional string miner = 6; + * string miner = 6; */ public java.lang.String getMiner() { java.lang.Object ref = miner_; @@ -14486,7 +14767,7 @@ public java.lang.String getMiner() { } } /** - * optional string miner = 6; + * string miner = 6; */ public com.google.protobuf.ByteString getMinerBytes() { @@ -14505,7 +14786,7 @@ public java.lang.String getMiner() { public static final int TXPOOL_FIELD_NUMBER = 7; private volatile java.lang.Object txpool_; /** - * optional string txpool = 7; + * string txpool = 7; */ public java.lang.String getTxpool() { java.lang.Object ref = txpool_; @@ -14520,7 +14801,7 @@ public java.lang.String getTxpool() { } } /** - * optional string txpool = 7; + * string txpool = 7; */ public com.google.protobuf.ByteString getTxpoolBytes() { @@ -14569,6 +14850,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getTxpoolBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, txpool_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -14597,11 +14879,11 @@ public int getSerializedSize() { if (!getTxpoolBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, txpool_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -14627,6 +14909,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getMiner()); result = result && getTxpool() .equals(other.getTxpool()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -14636,7 +14919,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + KERNEL_FIELD_NUMBER; hash = (53 * hash) + getKernel().hashCode(); hash = (37 * hash) + NET_FIELD_NUMBER; @@ -14656,6 +14939,17 @@ public int hashCode() { 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 { @@ -14821,7 +15115,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -14834,12 +15128,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -14881,6 +15175,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_protocolVersion othe txpool_ = other.txpool_; onChanged(); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -14909,7 +15204,7 @@ public Builder mergeFrom( private java.lang.Object kernel_ = ""; /** - * optional string kernel = 1; + * string kernel = 1; */ public java.lang.String getKernel() { java.lang.Object ref = kernel_; @@ -14924,7 +15219,7 @@ public java.lang.String getKernel() { } } /** - * optional string kernel = 1; + * string kernel = 1; */ public com.google.protobuf.ByteString getKernelBytes() { @@ -14940,7 +15235,7 @@ public java.lang.String getKernel() { } } /** - * optional string kernel = 1; + * string kernel = 1; */ public Builder setKernel( java.lang.String value) { @@ -14953,7 +15248,7 @@ public Builder setKernel( return this; } /** - * optional string kernel = 1; + * string kernel = 1; */ public Builder clearKernel() { @@ -14962,7 +15257,7 @@ public Builder clearKernel() { return this; } /** - * optional string kernel = 1; + * string kernel = 1; */ public Builder setKernelBytes( com.google.protobuf.ByteString value) { @@ -14978,7 +15273,7 @@ public Builder setKernelBytes( private java.lang.Object net_ = ""; /** - * optional string net = 2; + * string net = 2; */ public java.lang.String getNet() { java.lang.Object ref = net_; @@ -14993,7 +15288,7 @@ public java.lang.String getNet() { } } /** - * optional string net = 2; + * string net = 2; */ public com.google.protobuf.ByteString getNetBytes() { @@ -15009,7 +15304,7 @@ public java.lang.String getNet() { } } /** - * optional string net = 2; + * string net = 2; */ public Builder setNet( java.lang.String value) { @@ -15022,7 +15317,7 @@ public Builder setNet( return this; } /** - * optional string net = 2; + * string net = 2; */ public Builder clearNet() { @@ -15031,7 +15326,7 @@ public Builder clearNet() { return this; } /** - * optional string net = 2; + * string net = 2; */ public Builder setNetBytes( com.google.protobuf.ByteString value) { @@ -15047,7 +15342,7 @@ public Builder setNetBytes( private java.lang.Object api_ = ""; /** - * optional string api = 3; + * string api = 3; */ public java.lang.String getApi() { java.lang.Object ref = api_; @@ -15062,7 +15357,7 @@ public java.lang.String getApi() { } } /** - * optional string api = 3; + * string api = 3; */ public com.google.protobuf.ByteString getApiBytes() { @@ -15078,7 +15373,7 @@ public java.lang.String getApi() { } } /** - * optional string api = 3; + * string api = 3; */ public Builder setApi( java.lang.String value) { @@ -15091,7 +15386,7 @@ public Builder setApi( return this; } /** - * optional string api = 3; + * string api = 3; */ public Builder clearApi() { @@ -15100,7 +15395,7 @@ public Builder clearApi() { return this; } /** - * optional string api = 3; + * string api = 3; */ public Builder setApiBytes( com.google.protobuf.ByteString value) { @@ -15116,7 +15411,7 @@ public Builder setApiBytes( private java.lang.Object vm_ = ""; /** - * optional string vm = 4; + * string vm = 4; */ public java.lang.String getVm() { java.lang.Object ref = vm_; @@ -15131,7 +15426,7 @@ public java.lang.String getVm() { } } /** - * optional string vm = 4; + * string vm = 4; */ public com.google.protobuf.ByteString getVmBytes() { @@ -15147,7 +15442,7 @@ public java.lang.String getVm() { } } /** - * optional string vm = 4; + * string vm = 4; */ public Builder setVm( java.lang.String value) { @@ -15160,7 +15455,7 @@ public Builder setVm( return this; } /** - * optional string vm = 4; + * string vm = 4; */ public Builder clearVm() { @@ -15169,7 +15464,7 @@ public Builder clearVm() { return this; } /** - * optional string vm = 4; + * string vm = 4; */ public Builder setVmBytes( com.google.protobuf.ByteString value) { @@ -15185,7 +15480,7 @@ public Builder setVmBytes( private java.lang.Object db_ = ""; /** - * optional string db = 5; + * string db = 5; */ public java.lang.String getDb() { java.lang.Object ref = db_; @@ -15200,7 +15495,7 @@ public java.lang.String getDb() { } } /** - * optional string db = 5; + * string db = 5; */ public com.google.protobuf.ByteString getDbBytes() { @@ -15216,7 +15511,7 @@ public java.lang.String getDb() { } } /** - * optional string db = 5; + * string db = 5; */ public Builder setDb( java.lang.String value) { @@ -15229,7 +15524,7 @@ public Builder setDb( return this; } /** - * optional string db = 5; + * string db = 5; */ public Builder clearDb() { @@ -15238,7 +15533,7 @@ public Builder clearDb() { return this; } /** - * optional string db = 5; + * string db = 5; */ public Builder setDbBytes( com.google.protobuf.ByteString value) { @@ -15254,7 +15549,7 @@ public Builder setDbBytes( private java.lang.Object miner_ = ""; /** - * optional string miner = 6; + * string miner = 6; */ public java.lang.String getMiner() { java.lang.Object ref = miner_; @@ -15269,7 +15564,7 @@ public java.lang.String getMiner() { } } /** - * optional string miner = 6; + * string miner = 6; */ public com.google.protobuf.ByteString getMinerBytes() { @@ -15285,7 +15580,7 @@ public java.lang.String getMiner() { } } /** - * optional string miner = 6; + * string miner = 6; */ public Builder setMiner( java.lang.String value) { @@ -15298,7 +15593,7 @@ public Builder setMiner( return this; } /** - * optional string miner = 6; + * string miner = 6; */ public Builder clearMiner() { @@ -15307,7 +15602,7 @@ public Builder clearMiner() { return this; } /** - * optional string miner = 6; + * string miner = 6; */ public Builder setMinerBytes( com.google.protobuf.ByteString value) { @@ -15323,7 +15618,7 @@ public Builder setMinerBytes( private java.lang.Object txpool_ = ""; /** - * optional string txpool = 7; + * string txpool = 7; */ public java.lang.String getTxpool() { java.lang.Object ref = txpool_; @@ -15338,7 +15633,7 @@ public java.lang.String getTxpool() { } } /** - * optional string txpool = 7; + * string txpool = 7; */ public com.google.protobuf.ByteString getTxpoolBytes() { @@ -15354,7 +15649,7 @@ public java.lang.String getTxpool() { } } /** - * optional string txpool = 7; + * string txpool = 7; */ public Builder setTxpool( java.lang.String value) { @@ -15367,7 +15662,7 @@ public Builder setTxpool( return this; } /** - * optional string txpool = 7; + * string txpool = 7; */ public Builder clearTxpool() { @@ -15376,7 +15671,7 @@ public Builder clearTxpool() { return this; } /** - * optional string txpool = 7; + * string txpool = 7; */ public Builder setTxpoolBytes( com.google.protobuf.ByteString value) { @@ -15391,12 +15686,12 @@ public Builder setTxpoolBytes( } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -15419,7 +15714,7 @@ 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); + return new rsp_protocolVersion(input, extensionRegistry); } }; @@ -15443,7 +15738,7 @@ public interface rsp_minerAddressOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes minerAddr = 1; + * bytes minerAddr = 1; */ com.google.protobuf.ByteString getMinerAddr(); } @@ -15454,6 +15749,7 @@ 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); @@ -15465,14 +15761,19 @@ private rsp_minerAddress() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -15482,7 +15783,8 @@ private rsp_minerAddress( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -15500,6 +15802,7 @@ private rsp_minerAddress( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -15518,7 +15821,7 @@ private rsp_minerAddress( public static final int MINERADDR_FIELD_NUMBER = 1; private com.google.protobuf.ByteString minerAddr_; /** - * optional bytes minerAddr = 1; + * bytes minerAddr = 1; */ public com.google.protobuf.ByteString getMinerAddr() { return minerAddr_; @@ -15539,6 +15842,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!minerAddr_.isEmpty()) { output.writeBytes(1, minerAddr_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -15550,11 +15854,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, minerAddr_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -15568,6 +15872,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getMinerAddr() .equals(other.getMinerAddr()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -15577,7 +15882,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MINERADDR_FIELD_NUMBER; hash = (53 * hash) + getMinerAddr().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -15585,6 +15890,17 @@ public int hashCode() { 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 { @@ -15732,7 +16048,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -15745,12 +16061,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -15767,6 +16083,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_minerAddress other) if (other.getMinerAddr() != com.google.protobuf.ByteString.EMPTY) { setMinerAddr(other.getMinerAddr()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -15795,13 +16112,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString minerAddr_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes minerAddr = 1; + * bytes minerAddr = 1; */ public com.google.protobuf.ByteString getMinerAddr() { return minerAddr_; } /** - * optional bytes minerAddr = 1; + * bytes minerAddr = 1; */ public Builder setMinerAddr(com.google.protobuf.ByteString value) { if (value == null) { @@ -15813,7 +16130,7 @@ public Builder setMinerAddr(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes minerAddr = 1; + * bytes minerAddr = 1; */ public Builder clearMinerAddr() { @@ -15823,12 +16140,12 @@ public Builder clearMinerAddr() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -15851,7 +16168,7 @@ 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); + return new rsp_minerAddress(input, extensionRegistry); } }; @@ -15875,7 +16192,7 @@ public interface req_getBlockByNumberOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ long getBlockNumber(); } @@ -15886,6 +16203,7 @@ 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); @@ -15897,14 +16215,19 @@ private req_getBlockByNumber() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -15914,7 +16237,8 @@ private req_getBlockByNumber( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -15932,6 +16256,7 @@ private req_getBlockByNumber( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -15950,7 +16275,7 @@ private req_getBlockByNumber( public static final int BLOCKNUMBER_FIELD_NUMBER = 1; private long blockNumber_; /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public long getBlockNumber() { return blockNumber_; @@ -15971,6 +16296,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (blockNumber_ != 0L) { output.writeUInt64(1, blockNumber_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -15982,11 +16308,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, blockNumber_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -16000,6 +16326,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && (getBlockNumber() == other.getBlockNumber()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -16009,7 +16336,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlockNumber()); @@ -16018,6 +16345,17 @@ public int hashCode() { 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 { @@ -16165,7 +16503,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -16178,12 +16516,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -16200,6 +16538,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockByNumber oth if (other.getBlockNumber() != 0L) { setBlockNumber(other.getBlockNumber()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -16228,13 +16567,13 @@ public Builder mergeFrom( private long blockNumber_ ; /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public long getBlockNumber() { return blockNumber_; } /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public Builder setBlockNumber(long value) { @@ -16243,7 +16582,7 @@ public Builder setBlockNumber(long value) { return this; } /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public Builder clearBlockNumber() { @@ -16253,12 +16592,12 @@ public Builder clearBlockNumber() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -16281,7 +16620,7 @@ 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); + return new req_getBlockByNumber(input, extensionRegistry); } }; @@ -16305,87 +16644,87 @@ public interface rsp_getBlockOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ long getBlockNumber(); /** - * optional uint64 timestamp = 2; + * uint64 timestamp = 2; */ long getTimestamp(); /** - * optional uint64 nrgConsumed = 3; + * uint64 nrgConsumed = 3; */ long getNrgConsumed(); /** - * optional uint64 nrgLimit = 4; + * uint64 nrgLimit = 4; */ long getNrgLimit(); /** - * optional bytes parentHash = 5; + * bytes parentHash = 5; */ com.google.protobuf.ByteString getParentHash(); /** - * optional bytes minerAddress = 6; + * bytes minerAddress = 6; */ com.google.protobuf.ByteString getMinerAddress(); /** - * optional bytes stateRoot = 7; + * bytes stateRoot = 7; */ com.google.protobuf.ByteString getStateRoot(); /** - * optional bytes txTrieRoot = 8; + * bytes txTrieRoot = 8; */ com.google.protobuf.ByteString getTxTrieRoot(); /** - * optional bytes receiptTrieRoot = 9; + * bytes receiptTrieRoot = 9; */ com.google.protobuf.ByteString getReceiptTrieRoot(); /** - * optional bytes logsBloom = 10; + * bytes logsBloom = 10; */ com.google.protobuf.ByteString getLogsBloom(); /** - * optional bytes difficulty = 11; + * bytes difficulty = 11; */ com.google.protobuf.ByteString getDifficulty(); /** - * optional bytes totalDifficulty = 12; + * bytes totalDifficulty = 12; */ com.google.protobuf.ByteString getTotalDifficulty(); /** - * optional bytes extraData = 13; + * bytes extraData = 13; */ com.google.protobuf.ByteString getExtraData(); /** - * optional bytes nonce = 14; + * bytes nonce = 14; */ com.google.protobuf.ByteString getNonce(); /** - * optional bytes solution = 15; + * bytes solution = 15; */ com.google.protobuf.ByteString getSolution(); /** - * optional bytes hash = 16; + * bytes hash = 16; */ com.google.protobuf.ByteString getHash(); /** - * optional uint32 size = 17; + * uint32 size = 17; */ int getSize(); @@ -16409,6 +16748,7 @@ 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); @@ -16437,14 +16777,19 @@ private rsp_getBlock() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -16454,7 +16799,8 @@ private rsp_getBlock( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -16563,6 +16909,7 @@ private rsp_getBlock( if (((mutable_bitField0_ & 0x00020000) == 0x00020000)) { txHash_ = java.util.Collections.unmodifiableList(txHash_); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -16582,7 +16929,7 @@ private rsp_getBlock( public static final int BLOCKNUMBER_FIELD_NUMBER = 1; private long blockNumber_; /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public long getBlockNumber() { return blockNumber_; @@ -16591,7 +16938,7 @@ public long getBlockNumber() { public static final int TIMESTAMP_FIELD_NUMBER = 2; private long timestamp_; /** - * optional uint64 timestamp = 2; + * uint64 timestamp = 2; */ public long getTimestamp() { return timestamp_; @@ -16600,7 +16947,7 @@ public long getTimestamp() { public static final int NRGCONSUMED_FIELD_NUMBER = 3; private long nrgConsumed_; /** - * optional uint64 nrgConsumed = 3; + * uint64 nrgConsumed = 3; */ public long getNrgConsumed() { return nrgConsumed_; @@ -16609,7 +16956,7 @@ public long getNrgConsumed() { public static final int NRGLIMIT_FIELD_NUMBER = 4; private long nrgLimit_; /** - * optional uint64 nrgLimit = 4; + * uint64 nrgLimit = 4; */ public long getNrgLimit() { return nrgLimit_; @@ -16618,7 +16965,7 @@ public long getNrgLimit() { public static final int PARENTHASH_FIELD_NUMBER = 5; private com.google.protobuf.ByteString parentHash_; /** - * optional bytes parentHash = 5; + * bytes parentHash = 5; */ public com.google.protobuf.ByteString getParentHash() { return parentHash_; @@ -16627,7 +16974,7 @@ public com.google.protobuf.ByteString getParentHash() { public static final int MINERADDRESS_FIELD_NUMBER = 6; private com.google.protobuf.ByteString minerAddress_; /** - * optional bytes minerAddress = 6; + * bytes minerAddress = 6; */ public com.google.protobuf.ByteString getMinerAddress() { return minerAddress_; @@ -16636,7 +16983,7 @@ public com.google.protobuf.ByteString getMinerAddress() { public static final int STATEROOT_FIELD_NUMBER = 7; private com.google.protobuf.ByteString stateRoot_; /** - * optional bytes stateRoot = 7; + * bytes stateRoot = 7; */ public com.google.protobuf.ByteString getStateRoot() { return stateRoot_; @@ -16645,7 +16992,7 @@ public com.google.protobuf.ByteString getStateRoot() { public static final int TXTRIEROOT_FIELD_NUMBER = 8; private com.google.protobuf.ByteString txTrieRoot_; /** - * optional bytes txTrieRoot = 8; + * bytes txTrieRoot = 8; */ public com.google.protobuf.ByteString getTxTrieRoot() { return txTrieRoot_; @@ -16654,7 +17001,7 @@ public com.google.protobuf.ByteString getTxTrieRoot() { public static final int RECEIPTTRIEROOT_FIELD_NUMBER = 9; private com.google.protobuf.ByteString receiptTrieRoot_; /** - * optional bytes receiptTrieRoot = 9; + * bytes receiptTrieRoot = 9; */ public com.google.protobuf.ByteString getReceiptTrieRoot() { return receiptTrieRoot_; @@ -16663,7 +17010,7 @@ public com.google.protobuf.ByteString getReceiptTrieRoot() { public static final int LOGSBLOOM_FIELD_NUMBER = 10; private com.google.protobuf.ByteString logsBloom_; /** - * optional bytes logsBloom = 10; + * bytes logsBloom = 10; */ public com.google.protobuf.ByteString getLogsBloom() { return logsBloom_; @@ -16672,7 +17019,7 @@ public com.google.protobuf.ByteString getLogsBloom() { public static final int DIFFICULTY_FIELD_NUMBER = 11; private com.google.protobuf.ByteString difficulty_; /** - * optional bytes difficulty = 11; + * bytes difficulty = 11; */ public com.google.protobuf.ByteString getDifficulty() { return difficulty_; @@ -16681,7 +17028,7 @@ public com.google.protobuf.ByteString getDifficulty() { public static final int TOTALDIFFICULTY_FIELD_NUMBER = 12; private com.google.protobuf.ByteString totalDifficulty_; /** - * optional bytes totalDifficulty = 12; + * bytes totalDifficulty = 12; */ public com.google.protobuf.ByteString getTotalDifficulty() { return totalDifficulty_; @@ -16690,7 +17037,7 @@ public com.google.protobuf.ByteString getTotalDifficulty() { public static final int EXTRADATA_FIELD_NUMBER = 13; private com.google.protobuf.ByteString extraData_; /** - * optional bytes extraData = 13; + * bytes extraData = 13; */ public com.google.protobuf.ByteString getExtraData() { return extraData_; @@ -16699,7 +17046,7 @@ public com.google.protobuf.ByteString getExtraData() { public static final int NONCE_FIELD_NUMBER = 14; private com.google.protobuf.ByteString nonce_; /** - * optional bytes nonce = 14; + * bytes nonce = 14; */ public com.google.protobuf.ByteString getNonce() { return nonce_; @@ -16708,7 +17055,7 @@ public com.google.protobuf.ByteString getNonce() { public static final int SOLUTION_FIELD_NUMBER = 15; private com.google.protobuf.ByteString solution_; /** - * optional bytes solution = 15; + * bytes solution = 15; */ public com.google.protobuf.ByteString getSolution() { return solution_; @@ -16717,7 +17064,7 @@ public com.google.protobuf.ByteString getSolution() { public static final int HASH_FIELD_NUMBER = 16; private com.google.protobuf.ByteString hash_; /** - * optional bytes hash = 16; + * bytes hash = 16; */ public com.google.protobuf.ByteString getHash() { return hash_; @@ -16726,7 +17073,7 @@ public com.google.protobuf.ByteString getHash() { public static final int SIZE_FIELD_NUMBER = 17; private int size_; /** - * optional uint32 size = 17; + * uint32 size = 17; */ public int getSize() { return size_; @@ -16820,6 +17167,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < txHash_.size(); i++) { output.writeBytes(18, txHash_.get(i)); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -16904,11 +17252,11 @@ public int getSerializedSize() { size += dataSize; size += 2 * getTxHashList().size(); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -16956,6 +17304,7 @@ public boolean equals(final java.lang.Object obj) { == other.getSize()); result = result && getTxHashList() .equals(other.getTxHashList()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -16965,7 +17314,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlockNumber()); @@ -17013,6 +17362,17 @@ public int hashCode() { 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 { @@ -17218,7 +17578,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -17231,12 +17591,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -17311,6 +17671,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlock other) { } onChanged(); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -17340,13 +17701,13 @@ public Builder mergeFrom( private long blockNumber_ ; /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public long getBlockNumber() { return blockNumber_; } /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public Builder setBlockNumber(long value) { @@ -17355,7 +17716,7 @@ public Builder setBlockNumber(long value) { return this; } /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public Builder clearBlockNumber() { @@ -17366,13 +17727,13 @@ public Builder clearBlockNumber() { private long timestamp_ ; /** - * optional uint64 timestamp = 2; + * uint64 timestamp = 2; */ public long getTimestamp() { return timestamp_; } /** - * optional uint64 timestamp = 2; + * uint64 timestamp = 2; */ public Builder setTimestamp(long value) { @@ -17381,7 +17742,7 @@ public Builder setTimestamp(long value) { return this; } /** - * optional uint64 timestamp = 2; + * uint64 timestamp = 2; */ public Builder clearTimestamp() { @@ -17392,13 +17753,13 @@ public Builder clearTimestamp() { private long nrgConsumed_ ; /** - * optional uint64 nrgConsumed = 3; + * uint64 nrgConsumed = 3; */ public long getNrgConsumed() { return nrgConsumed_; } /** - * optional uint64 nrgConsumed = 3; + * uint64 nrgConsumed = 3; */ public Builder setNrgConsumed(long value) { @@ -17407,7 +17768,7 @@ public Builder setNrgConsumed(long value) { return this; } /** - * optional uint64 nrgConsumed = 3; + * uint64 nrgConsumed = 3; */ public Builder clearNrgConsumed() { @@ -17418,13 +17779,13 @@ public Builder clearNrgConsumed() { private long nrgLimit_ ; /** - * optional uint64 nrgLimit = 4; + * uint64 nrgLimit = 4; */ public long getNrgLimit() { return nrgLimit_; } /** - * optional uint64 nrgLimit = 4; + * uint64 nrgLimit = 4; */ public Builder setNrgLimit(long value) { @@ -17433,7 +17794,7 @@ public Builder setNrgLimit(long value) { return this; } /** - * optional uint64 nrgLimit = 4; + * uint64 nrgLimit = 4; */ public Builder clearNrgLimit() { @@ -17444,13 +17805,13 @@ public Builder clearNrgLimit() { private com.google.protobuf.ByteString parentHash_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes parentHash = 5; + * bytes parentHash = 5; */ public com.google.protobuf.ByteString getParentHash() { return parentHash_; } /** - * optional bytes parentHash = 5; + * bytes parentHash = 5; */ public Builder setParentHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -17462,7 +17823,7 @@ public Builder setParentHash(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes parentHash = 5; + * bytes parentHash = 5; */ public Builder clearParentHash() { @@ -17473,13 +17834,13 @@ public Builder clearParentHash() { private com.google.protobuf.ByteString minerAddress_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes minerAddress = 6; + * bytes minerAddress = 6; */ public com.google.protobuf.ByteString getMinerAddress() { return minerAddress_; } /** - * optional bytes minerAddress = 6; + * bytes minerAddress = 6; */ public Builder setMinerAddress(com.google.protobuf.ByteString value) { if (value == null) { @@ -17491,7 +17852,7 @@ public Builder setMinerAddress(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes minerAddress = 6; + * bytes minerAddress = 6; */ public Builder clearMinerAddress() { @@ -17502,13 +17863,13 @@ public Builder clearMinerAddress() { private com.google.protobuf.ByteString stateRoot_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes stateRoot = 7; + * bytes stateRoot = 7; */ public com.google.protobuf.ByteString getStateRoot() { return stateRoot_; } /** - * optional bytes stateRoot = 7; + * bytes stateRoot = 7; */ public Builder setStateRoot(com.google.protobuf.ByteString value) { if (value == null) { @@ -17520,7 +17881,7 @@ public Builder setStateRoot(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes stateRoot = 7; + * bytes stateRoot = 7; */ public Builder clearStateRoot() { @@ -17531,13 +17892,13 @@ public Builder clearStateRoot() { private com.google.protobuf.ByteString txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes txTrieRoot = 8; + * bytes txTrieRoot = 8; */ public com.google.protobuf.ByteString getTxTrieRoot() { return txTrieRoot_; } /** - * optional bytes txTrieRoot = 8; + * bytes txTrieRoot = 8; */ public Builder setTxTrieRoot(com.google.protobuf.ByteString value) { if (value == null) { @@ -17549,7 +17910,7 @@ public Builder setTxTrieRoot(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes txTrieRoot = 8; + * bytes txTrieRoot = 8; */ public Builder clearTxTrieRoot() { @@ -17560,13 +17921,13 @@ public Builder clearTxTrieRoot() { private com.google.protobuf.ByteString receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes receiptTrieRoot = 9; + * bytes receiptTrieRoot = 9; */ public com.google.protobuf.ByteString getReceiptTrieRoot() { return receiptTrieRoot_; } /** - * optional bytes receiptTrieRoot = 9; + * bytes receiptTrieRoot = 9; */ public Builder setReceiptTrieRoot(com.google.protobuf.ByteString value) { if (value == null) { @@ -17578,7 +17939,7 @@ public Builder setReceiptTrieRoot(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes receiptTrieRoot = 9; + * bytes receiptTrieRoot = 9; */ public Builder clearReceiptTrieRoot() { @@ -17589,13 +17950,13 @@ public Builder clearReceiptTrieRoot() { private com.google.protobuf.ByteString logsBloom_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes logsBloom = 10; + * bytes logsBloom = 10; */ public com.google.protobuf.ByteString getLogsBloom() { return logsBloom_; } /** - * optional bytes logsBloom = 10; + * bytes logsBloom = 10; */ public Builder setLogsBloom(com.google.protobuf.ByteString value) { if (value == null) { @@ -17607,7 +17968,7 @@ public Builder setLogsBloom(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes logsBloom = 10; + * bytes logsBloom = 10; */ public Builder clearLogsBloom() { @@ -17618,13 +17979,13 @@ public Builder clearLogsBloom() { private com.google.protobuf.ByteString difficulty_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes difficulty = 11; + * bytes difficulty = 11; */ public com.google.protobuf.ByteString getDifficulty() { return difficulty_; } /** - * optional bytes difficulty = 11; + * bytes difficulty = 11; */ public Builder setDifficulty(com.google.protobuf.ByteString value) { if (value == null) { @@ -17636,7 +17997,7 @@ public Builder setDifficulty(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes difficulty = 11; + * bytes difficulty = 11; */ public Builder clearDifficulty() { @@ -17647,13 +18008,13 @@ public Builder clearDifficulty() { private com.google.protobuf.ByteString totalDifficulty_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes totalDifficulty = 12; + * bytes totalDifficulty = 12; */ public com.google.protobuf.ByteString getTotalDifficulty() { return totalDifficulty_; } /** - * optional bytes totalDifficulty = 12; + * bytes totalDifficulty = 12; */ public Builder setTotalDifficulty(com.google.protobuf.ByteString value) { if (value == null) { @@ -17665,7 +18026,7 @@ public Builder setTotalDifficulty(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes totalDifficulty = 12; + * bytes totalDifficulty = 12; */ public Builder clearTotalDifficulty() { @@ -17676,13 +18037,13 @@ public Builder clearTotalDifficulty() { private com.google.protobuf.ByteString extraData_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes extraData = 13; + * bytes extraData = 13; */ public com.google.protobuf.ByteString getExtraData() { return extraData_; } /** - * optional bytes extraData = 13; + * bytes extraData = 13; */ public Builder setExtraData(com.google.protobuf.ByteString value) { if (value == null) { @@ -17694,7 +18055,7 @@ public Builder setExtraData(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes extraData = 13; + * bytes extraData = 13; */ public Builder clearExtraData() { @@ -17705,13 +18066,13 @@ public Builder clearExtraData() { private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes nonce = 14; + * bytes nonce = 14; */ public com.google.protobuf.ByteString getNonce() { return nonce_; } /** - * optional bytes nonce = 14; + * bytes nonce = 14; */ public Builder setNonce(com.google.protobuf.ByteString value) { if (value == null) { @@ -17723,7 +18084,7 @@ public Builder setNonce(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes nonce = 14; + * bytes nonce = 14; */ public Builder clearNonce() { @@ -17734,13 +18095,13 @@ public Builder clearNonce() { private com.google.protobuf.ByteString solution_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes solution = 15; + * bytes solution = 15; */ public com.google.protobuf.ByteString getSolution() { return solution_; } /** - * optional bytes solution = 15; + * bytes solution = 15; */ public Builder setSolution(com.google.protobuf.ByteString value) { if (value == null) { @@ -17752,7 +18113,7 @@ public Builder setSolution(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes solution = 15; + * bytes solution = 15; */ public Builder clearSolution() { @@ -17763,13 +18124,13 @@ public Builder clearSolution() { private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes hash = 16; + * bytes hash = 16; */ public com.google.protobuf.ByteString getHash() { return hash_; } /** - * optional bytes hash = 16; + * bytes hash = 16; */ public Builder setHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -17781,7 +18142,7 @@ public Builder setHash(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes hash = 16; + * bytes hash = 16; */ public Builder clearHash() { @@ -17792,13 +18153,13 @@ public Builder clearHash() { private int size_ ; /** - * optional uint32 size = 17; + * uint32 size = 17; */ public int getSize() { return size_; } /** - * optional uint32 size = 17; + * uint32 size = 17; */ public Builder setSize(int value) { @@ -17807,7 +18168,7 @@ public Builder setSize(int value) { return this; } /** - * optional uint32 size = 17; + * uint32 size = 17; */ public Builder clearSize() { @@ -17889,12 +18250,12 @@ public Builder clearTxHash() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -17917,7 +18278,7 @@ 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); + return new rsp_getBlock(input, extensionRegistry); } }; @@ -17941,7 +18302,7 @@ public interface req_getBlockHeaderByNumberOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ long getBlockNumber(); } @@ -17952,6 +18313,7 @@ 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); @@ -17963,14 +18325,19 @@ private req_getBlockHeaderByNumber() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -17980,7 +18347,8 @@ private req_getBlockHeaderByNumber( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -17998,6 +18366,7 @@ private req_getBlockHeaderByNumber( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -18016,7 +18385,7 @@ private req_getBlockHeaderByNumber( public static final int BLOCKNUMBER_FIELD_NUMBER = 1; private long blockNumber_; /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public long getBlockNumber() { return blockNumber_; @@ -18037,6 +18406,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (blockNumber_ != 0L) { output.writeUInt64(1, blockNumber_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -18048,11 +18418,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, blockNumber_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -18066,6 +18436,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && (getBlockNumber() == other.getBlockNumber()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -18075,7 +18446,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlockNumber()); @@ -18084,6 +18455,17 @@ public int hashCode() { 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 { @@ -18231,7 +18613,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -18244,12 +18626,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -18266,6 +18648,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockHeaderByNumb if (other.getBlockNumber() != 0L) { setBlockNumber(other.getBlockNumber()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -18294,13 +18677,13 @@ public Builder mergeFrom( private long blockNumber_ ; /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public long getBlockNumber() { return blockNumber_; } /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public Builder setBlockNumber(long value) { @@ -18309,7 +18692,7 @@ public Builder setBlockNumber(long value) { return this; } /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public Builder clearBlockNumber() { @@ -18319,12 +18702,12 @@ public Builder clearBlockNumber() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -18347,7 +18730,7 @@ 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); + return new req_getBlockHeaderByNumber(input, extensionRegistry); } }; @@ -18371,82 +18754,82 @@ public interface rsp_getBlockHeaderOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ long getBlockNumber(); /** - * optional uint64 timestamp = 2; + * uint64 timestamp = 2; */ long getTimestamp(); /** - * optional uint64 nrgConsumed = 3; + * uint64 nrgConsumed = 3; */ long getNrgConsumed(); /** - * optional uint64 nrgLimit = 4; + * uint64 nrgLimit = 4; */ long getNrgLimit(); /** - * optional bytes parentHash = 5; + * bytes parentHash = 5; */ com.google.protobuf.ByteString getParentHash(); /** - * optional bytes minerAddress = 6; + * bytes minerAddress = 6; */ com.google.protobuf.ByteString getMinerAddress(); /** - * optional bytes stateRoot = 7; + * bytes stateRoot = 7; */ com.google.protobuf.ByteString getStateRoot(); /** - * optional bytes txTrieRoot = 8; + * bytes txTrieRoot = 8; */ com.google.protobuf.ByteString getTxTrieRoot(); /** - * optional bytes receiptTrieRoot = 9; + * bytes receiptTrieRoot = 9; */ com.google.protobuf.ByteString getReceiptTrieRoot(); /** - * optional bytes logsBloom = 10; + * bytes logsBloom = 10; */ com.google.protobuf.ByteString getLogsBloom(); /** - * optional bytes difficulty = 11; + * bytes difficulty = 11; */ com.google.protobuf.ByteString getDifficulty(); /** - * optional bytes extraData = 12; + * bytes extraData = 12; */ com.google.protobuf.ByteString getExtraData(); /** - * optional bytes nonce = 13; + * bytes nonce = 13; */ com.google.protobuf.ByteString getNonce(); /** - * optional bytes solution = 14; + * bytes solution = 14; */ com.google.protobuf.ByteString getSolution(); /** - * optional bytes hash = 15; + * bytes hash = 15; */ com.google.protobuf.ByteString getHash(); /** - * optional uint32 size = 16; + * uint32 size = 16; */ int getSize(); } @@ -18457,6 +18840,7 @@ 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); @@ -18483,14 +18867,19 @@ private rsp_getBlockHeader() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -18500,7 +18889,8 @@ private rsp_getBlockHeader( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -18593,6 +18983,7 @@ private rsp_getBlockHeader( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -18611,7 +19002,7 @@ private rsp_getBlockHeader( public static final int BLOCKNUMBER_FIELD_NUMBER = 1; private long blockNumber_; /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public long getBlockNumber() { return blockNumber_; @@ -18620,7 +19011,7 @@ public long getBlockNumber() { public static final int TIMESTAMP_FIELD_NUMBER = 2; private long timestamp_; /** - * optional uint64 timestamp = 2; + * uint64 timestamp = 2; */ public long getTimestamp() { return timestamp_; @@ -18629,7 +19020,7 @@ public long getTimestamp() { public static final int NRGCONSUMED_FIELD_NUMBER = 3; private long nrgConsumed_; /** - * optional uint64 nrgConsumed = 3; + * uint64 nrgConsumed = 3; */ public long getNrgConsumed() { return nrgConsumed_; @@ -18638,7 +19029,7 @@ public long getNrgConsumed() { public static final int NRGLIMIT_FIELD_NUMBER = 4; private long nrgLimit_; /** - * optional uint64 nrgLimit = 4; + * uint64 nrgLimit = 4; */ public long getNrgLimit() { return nrgLimit_; @@ -18647,7 +19038,7 @@ public long getNrgLimit() { public static final int PARENTHASH_FIELD_NUMBER = 5; private com.google.protobuf.ByteString parentHash_; /** - * optional bytes parentHash = 5; + * bytes parentHash = 5; */ public com.google.protobuf.ByteString getParentHash() { return parentHash_; @@ -18656,7 +19047,7 @@ public com.google.protobuf.ByteString getParentHash() { public static final int MINERADDRESS_FIELD_NUMBER = 6; private com.google.protobuf.ByteString minerAddress_; /** - * optional bytes minerAddress = 6; + * bytes minerAddress = 6; */ public com.google.protobuf.ByteString getMinerAddress() { return minerAddress_; @@ -18665,7 +19056,7 @@ public com.google.protobuf.ByteString getMinerAddress() { public static final int STATEROOT_FIELD_NUMBER = 7; private com.google.protobuf.ByteString stateRoot_; /** - * optional bytes stateRoot = 7; + * bytes stateRoot = 7; */ public com.google.protobuf.ByteString getStateRoot() { return stateRoot_; @@ -18674,7 +19065,7 @@ public com.google.protobuf.ByteString getStateRoot() { public static final int TXTRIEROOT_FIELD_NUMBER = 8; private com.google.protobuf.ByteString txTrieRoot_; /** - * optional bytes txTrieRoot = 8; + * bytes txTrieRoot = 8; */ public com.google.protobuf.ByteString getTxTrieRoot() { return txTrieRoot_; @@ -18683,7 +19074,7 @@ public com.google.protobuf.ByteString getTxTrieRoot() { public static final int RECEIPTTRIEROOT_FIELD_NUMBER = 9; private com.google.protobuf.ByteString receiptTrieRoot_; /** - * optional bytes receiptTrieRoot = 9; + * bytes receiptTrieRoot = 9; */ public com.google.protobuf.ByteString getReceiptTrieRoot() { return receiptTrieRoot_; @@ -18692,7 +19083,7 @@ public com.google.protobuf.ByteString getReceiptTrieRoot() { public static final int LOGSBLOOM_FIELD_NUMBER = 10; private com.google.protobuf.ByteString logsBloom_; /** - * optional bytes logsBloom = 10; + * bytes logsBloom = 10; */ public com.google.protobuf.ByteString getLogsBloom() { return logsBloom_; @@ -18701,7 +19092,7 @@ public com.google.protobuf.ByteString getLogsBloom() { public static final int DIFFICULTY_FIELD_NUMBER = 11; private com.google.protobuf.ByteString difficulty_; /** - * optional bytes difficulty = 11; + * bytes difficulty = 11; */ public com.google.protobuf.ByteString getDifficulty() { return difficulty_; @@ -18710,7 +19101,7 @@ public com.google.protobuf.ByteString getDifficulty() { public static final int EXTRADATA_FIELD_NUMBER = 12; private com.google.protobuf.ByteString extraData_; /** - * optional bytes extraData = 12; + * bytes extraData = 12; */ public com.google.protobuf.ByteString getExtraData() { return extraData_; @@ -18719,7 +19110,7 @@ public com.google.protobuf.ByteString getExtraData() { public static final int NONCE_FIELD_NUMBER = 13; private com.google.protobuf.ByteString nonce_; /** - * optional bytes nonce = 13; + * bytes nonce = 13; */ public com.google.protobuf.ByteString getNonce() { return nonce_; @@ -18728,7 +19119,7 @@ public com.google.protobuf.ByteString getNonce() { public static final int SOLUTION_FIELD_NUMBER = 14; private com.google.protobuf.ByteString solution_; /** - * optional bytes solution = 14; + * bytes solution = 14; */ public com.google.protobuf.ByteString getSolution() { return solution_; @@ -18737,7 +19128,7 @@ public com.google.protobuf.ByteString getSolution() { public static final int HASH_FIELD_NUMBER = 15; private com.google.protobuf.ByteString hash_; /** - * optional bytes hash = 15; + * bytes hash = 15; */ public com.google.protobuf.ByteString getHash() { return hash_; @@ -18746,7 +19137,7 @@ public com.google.protobuf.ByteString getHash() { public static final int SIZE_FIELD_NUMBER = 16; private int size_; /** - * optional uint32 size = 16; + * uint32 size = 16; */ public int getSize() { return size_; @@ -18812,6 +19203,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (size_ != 0) { output.writeUInt32(16, size_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -18883,11 +19275,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(16, size_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -18931,6 +19323,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getHash()); result = result && (getSize() == other.getSize()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -18940,7 +19333,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlockNumber()); @@ -18982,6 +19375,17 @@ public int hashCode() { 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 { @@ -19174,7 +19578,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -19187,12 +19591,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -19254,6 +19658,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlockHeader other if (other.getSize() != 0) { setSize(other.getSize()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -19282,13 +19687,13 @@ public Builder mergeFrom( private long blockNumber_ ; /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public long getBlockNumber() { return blockNumber_; } /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public Builder setBlockNumber(long value) { @@ -19297,7 +19702,7 @@ public Builder setBlockNumber(long value) { return this; } /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public Builder clearBlockNumber() { @@ -19308,13 +19713,13 @@ public Builder clearBlockNumber() { private long timestamp_ ; /** - * optional uint64 timestamp = 2; + * uint64 timestamp = 2; */ public long getTimestamp() { return timestamp_; } /** - * optional uint64 timestamp = 2; + * uint64 timestamp = 2; */ public Builder setTimestamp(long value) { @@ -19323,7 +19728,7 @@ public Builder setTimestamp(long value) { return this; } /** - * optional uint64 timestamp = 2; + * uint64 timestamp = 2; */ public Builder clearTimestamp() { @@ -19334,13 +19739,13 @@ public Builder clearTimestamp() { private long nrgConsumed_ ; /** - * optional uint64 nrgConsumed = 3; + * uint64 nrgConsumed = 3; */ public long getNrgConsumed() { return nrgConsumed_; } /** - * optional uint64 nrgConsumed = 3; + * uint64 nrgConsumed = 3; */ public Builder setNrgConsumed(long value) { @@ -19349,7 +19754,7 @@ public Builder setNrgConsumed(long value) { return this; } /** - * optional uint64 nrgConsumed = 3; + * uint64 nrgConsumed = 3; */ public Builder clearNrgConsumed() { @@ -19360,13 +19765,13 @@ public Builder clearNrgConsumed() { private long nrgLimit_ ; /** - * optional uint64 nrgLimit = 4; + * uint64 nrgLimit = 4; */ public long getNrgLimit() { return nrgLimit_; } /** - * optional uint64 nrgLimit = 4; + * uint64 nrgLimit = 4; */ public Builder setNrgLimit(long value) { @@ -19375,7 +19780,7 @@ public Builder setNrgLimit(long value) { return this; } /** - * optional uint64 nrgLimit = 4; + * uint64 nrgLimit = 4; */ public Builder clearNrgLimit() { @@ -19386,13 +19791,13 @@ public Builder clearNrgLimit() { private com.google.protobuf.ByteString parentHash_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes parentHash = 5; + * bytes parentHash = 5; */ public com.google.protobuf.ByteString getParentHash() { return parentHash_; } /** - * optional bytes parentHash = 5; + * bytes parentHash = 5; */ public Builder setParentHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -19404,7 +19809,7 @@ public Builder setParentHash(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes parentHash = 5; + * bytes parentHash = 5; */ public Builder clearParentHash() { @@ -19415,13 +19820,13 @@ public Builder clearParentHash() { private com.google.protobuf.ByteString minerAddress_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes minerAddress = 6; + * bytes minerAddress = 6; */ public com.google.protobuf.ByteString getMinerAddress() { return minerAddress_; } /** - * optional bytes minerAddress = 6; + * bytes minerAddress = 6; */ public Builder setMinerAddress(com.google.protobuf.ByteString value) { if (value == null) { @@ -19433,7 +19838,7 @@ public Builder setMinerAddress(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes minerAddress = 6; + * bytes minerAddress = 6; */ public Builder clearMinerAddress() { @@ -19444,13 +19849,13 @@ public Builder clearMinerAddress() { private com.google.protobuf.ByteString stateRoot_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes stateRoot = 7; + * bytes stateRoot = 7; */ public com.google.protobuf.ByteString getStateRoot() { return stateRoot_; } /** - * optional bytes stateRoot = 7; + * bytes stateRoot = 7; */ public Builder setStateRoot(com.google.protobuf.ByteString value) { if (value == null) { @@ -19462,7 +19867,7 @@ public Builder setStateRoot(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes stateRoot = 7; + * bytes stateRoot = 7; */ public Builder clearStateRoot() { @@ -19473,13 +19878,13 @@ public Builder clearStateRoot() { private com.google.protobuf.ByteString txTrieRoot_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes txTrieRoot = 8; + * bytes txTrieRoot = 8; */ public com.google.protobuf.ByteString getTxTrieRoot() { return txTrieRoot_; } /** - * optional bytes txTrieRoot = 8; + * bytes txTrieRoot = 8; */ public Builder setTxTrieRoot(com.google.protobuf.ByteString value) { if (value == null) { @@ -19491,7 +19896,7 @@ public Builder setTxTrieRoot(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes txTrieRoot = 8; + * bytes txTrieRoot = 8; */ public Builder clearTxTrieRoot() { @@ -19502,13 +19907,13 @@ public Builder clearTxTrieRoot() { private com.google.protobuf.ByteString receiptTrieRoot_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes receiptTrieRoot = 9; + * bytes receiptTrieRoot = 9; */ public com.google.protobuf.ByteString getReceiptTrieRoot() { return receiptTrieRoot_; } /** - * optional bytes receiptTrieRoot = 9; + * bytes receiptTrieRoot = 9; */ public Builder setReceiptTrieRoot(com.google.protobuf.ByteString value) { if (value == null) { @@ -19520,7 +19925,7 @@ public Builder setReceiptTrieRoot(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes receiptTrieRoot = 9; + * bytes receiptTrieRoot = 9; */ public Builder clearReceiptTrieRoot() { @@ -19531,13 +19936,13 @@ public Builder clearReceiptTrieRoot() { private com.google.protobuf.ByteString logsBloom_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes logsBloom = 10; + * bytes logsBloom = 10; */ public com.google.protobuf.ByteString getLogsBloom() { return logsBloom_; } /** - * optional bytes logsBloom = 10; + * bytes logsBloom = 10; */ public Builder setLogsBloom(com.google.protobuf.ByteString value) { if (value == null) { @@ -19549,7 +19954,7 @@ public Builder setLogsBloom(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes logsBloom = 10; + * bytes logsBloom = 10; */ public Builder clearLogsBloom() { @@ -19560,13 +19965,13 @@ public Builder clearLogsBloom() { private com.google.protobuf.ByteString difficulty_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes difficulty = 11; + * bytes difficulty = 11; */ public com.google.protobuf.ByteString getDifficulty() { return difficulty_; } /** - * optional bytes difficulty = 11; + * bytes difficulty = 11; */ public Builder setDifficulty(com.google.protobuf.ByteString value) { if (value == null) { @@ -19578,7 +19983,7 @@ public Builder setDifficulty(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes difficulty = 11; + * bytes difficulty = 11; */ public Builder clearDifficulty() { @@ -19589,13 +19994,13 @@ public Builder clearDifficulty() { private com.google.protobuf.ByteString extraData_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes extraData = 12; + * bytes extraData = 12; */ public com.google.protobuf.ByteString getExtraData() { return extraData_; } /** - * optional bytes extraData = 12; + * bytes extraData = 12; */ public Builder setExtraData(com.google.protobuf.ByteString value) { if (value == null) { @@ -19607,7 +20012,7 @@ public Builder setExtraData(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes extraData = 12; + * bytes extraData = 12; */ public Builder clearExtraData() { @@ -19618,13 +20023,13 @@ public Builder clearExtraData() { private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes nonce = 13; + * bytes nonce = 13; */ public com.google.protobuf.ByteString getNonce() { return nonce_; } /** - * optional bytes nonce = 13; + * bytes nonce = 13; */ public Builder setNonce(com.google.protobuf.ByteString value) { if (value == null) { @@ -19636,7 +20041,7 @@ public Builder setNonce(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes nonce = 13; + * bytes nonce = 13; */ public Builder clearNonce() { @@ -19647,13 +20052,13 @@ public Builder clearNonce() { private com.google.protobuf.ByteString solution_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes solution = 14; + * bytes solution = 14; */ public com.google.protobuf.ByteString getSolution() { return solution_; } /** - * optional bytes solution = 14; + * bytes solution = 14; */ public Builder setSolution(com.google.protobuf.ByteString value) { if (value == null) { @@ -19665,7 +20070,7 @@ public Builder setSolution(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes solution = 14; + * bytes solution = 14; */ public Builder clearSolution() { @@ -19676,13 +20081,13 @@ public Builder clearSolution() { private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes hash = 15; + * bytes hash = 15; */ public com.google.protobuf.ByteString getHash() { return hash_; } /** - * optional bytes hash = 15; + * bytes hash = 15; */ public Builder setHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -19694,7 +20099,7 @@ public Builder setHash(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes hash = 15; + * bytes hash = 15; */ public Builder clearHash() { @@ -19705,13 +20110,13 @@ public Builder clearHash() { private int size_ ; /** - * optional uint32 size = 16; + * uint32 size = 16; */ public int getSize() { return size_; } /** - * optional uint32 size = 16; + * uint32 size = 16; */ public Builder setSize(int value) { @@ -19720,7 +20125,7 @@ public Builder setSize(int value) { return this; } /** - * optional uint32 size = 16; + * uint32 size = 16; */ public Builder clearSize() { @@ -19730,12 +20135,12 @@ public Builder clearSize() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -19758,7 +20163,7 @@ 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); + return new rsp_getBlockHeader(input, extensionRegistry); } }; @@ -19782,37 +20187,37 @@ public interface req_sendTransactionOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes from = 1; + * bytes from = 1; */ com.google.protobuf.ByteString getFrom(); /** - * optional bytes to = 2; + * bytes to = 2; */ com.google.protobuf.ByteString getTo(); /** - * optional bytes value = 3; + * bytes value = 3; */ com.google.protobuf.ByteString getValue(); /** - * optional bytes data = 4; + * bytes data = 4; */ com.google.protobuf.ByteString getData(); /** - * optional bytes nonce = 5; + * bytes nonce = 5; */ com.google.protobuf.ByteString getNonce(); /** - * optional uint64 nrg = 6; + * uint64 nrg = 6; */ long getNrg(); /** - * optional uint64 nrgPrice = 7; + * uint64 nrgPrice = 7; */ long getNrgPrice(); } @@ -19823,6 +20228,7 @@ 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); @@ -19840,14 +20246,19 @@ private req_sendTransaction() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -19857,7 +20268,8 @@ private req_sendTransaction( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -19905,6 +20317,7 @@ private req_sendTransaction( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -19923,7 +20336,7 @@ private req_sendTransaction( public static final int FROM_FIELD_NUMBER = 1; private com.google.protobuf.ByteString from_; /** - * optional bytes from = 1; + * bytes from = 1; */ public com.google.protobuf.ByteString getFrom() { return from_; @@ -19932,7 +20345,7 @@ public com.google.protobuf.ByteString getFrom() { public static final int TO_FIELD_NUMBER = 2; private com.google.protobuf.ByteString to_; /** - * optional bytes to = 2; + * bytes to = 2; */ public com.google.protobuf.ByteString getTo() { return to_; @@ -19941,7 +20354,7 @@ public com.google.protobuf.ByteString getTo() { public static final int VALUE_FIELD_NUMBER = 3; private com.google.protobuf.ByteString value_; /** - * optional bytes value = 3; + * bytes value = 3; */ public com.google.protobuf.ByteString getValue() { return value_; @@ -19950,7 +20363,7 @@ public com.google.protobuf.ByteString getValue() { public static final int DATA_FIELD_NUMBER = 4; private com.google.protobuf.ByteString data_; /** - * optional bytes data = 4; + * bytes data = 4; */ public com.google.protobuf.ByteString getData() { return data_; @@ -19959,7 +20372,7 @@ public com.google.protobuf.ByteString getData() { public static final int NONCE_FIELD_NUMBER = 5; private com.google.protobuf.ByteString nonce_; /** - * optional bytes nonce = 5; + * bytes nonce = 5; */ public com.google.protobuf.ByteString getNonce() { return nonce_; @@ -19968,7 +20381,7 @@ public com.google.protobuf.ByteString getNonce() { public static final int NRG_FIELD_NUMBER = 6; private long nrg_; /** - * optional uint64 nrg = 6; + * uint64 nrg = 6; */ public long getNrg() { return nrg_; @@ -19977,7 +20390,7 @@ public long getNrg() { public static final int NRGPRICE_FIELD_NUMBER = 7; private long nrgPrice_; /** - * optional uint64 nrgPrice = 7; + * uint64 nrgPrice = 7; */ public long getNrgPrice() { return nrgPrice_; @@ -20016,6 +20429,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (nrgPrice_ != 0L) { output.writeUInt64(7, nrgPrice_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -20051,11 +20465,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, nrgPrice_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -20081,6 +20495,7 @@ public boolean equals(final java.lang.Object obj) { == other.getNrg()); result = result && (getNrgPrice() == other.getNrgPrice()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -20090,7 +20505,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FROM_FIELD_NUMBER; hash = (53 * hash) + getFrom().hashCode(); hash = (37 * hash) + TO_FIELD_NUMBER; @@ -20112,6 +20527,17 @@ public int hashCode() { 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 { @@ -20277,7 +20703,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -20290,12 +20716,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -20330,6 +20756,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_sendTransaction othe if (other.getNrgPrice() != 0L) { setNrgPrice(other.getNrgPrice()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -20358,13 +20785,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes from = 1; + * bytes from = 1; */ public com.google.protobuf.ByteString getFrom() { return from_; } /** - * optional bytes from = 1; + * bytes from = 1; */ public Builder setFrom(com.google.protobuf.ByteString value) { if (value == null) { @@ -20376,7 +20803,7 @@ public Builder setFrom(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes from = 1; + * bytes from = 1; */ public Builder clearFrom() { @@ -20387,13 +20814,13 @@ public Builder clearFrom() { private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes to = 2; + * bytes to = 2; */ public com.google.protobuf.ByteString getTo() { return to_; } /** - * optional bytes to = 2; + * bytes to = 2; */ public Builder setTo(com.google.protobuf.ByteString value) { if (value == null) { @@ -20405,7 +20832,7 @@ public Builder setTo(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes to = 2; + * bytes to = 2; */ public Builder clearTo() { @@ -20416,13 +20843,13 @@ public Builder clearTo() { private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes value = 3; + * bytes value = 3; */ public com.google.protobuf.ByteString getValue() { return value_; } /** - * optional bytes value = 3; + * bytes value = 3; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { @@ -20434,7 +20861,7 @@ public Builder setValue(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes value = 3; + * bytes value = 3; */ public Builder clearValue() { @@ -20445,13 +20872,13 @@ public Builder clearValue() { private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes data = 4; + * bytes data = 4; */ public com.google.protobuf.ByteString getData() { return data_; } /** - * optional bytes data = 4; + * bytes data = 4; */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { @@ -20463,7 +20890,7 @@ public Builder setData(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes data = 4; + * bytes data = 4; */ public Builder clearData() { @@ -20474,13 +20901,13 @@ public Builder clearData() { private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes nonce = 5; + * bytes nonce = 5; */ public com.google.protobuf.ByteString getNonce() { return nonce_; } /** - * optional bytes nonce = 5; + * bytes nonce = 5; */ public Builder setNonce(com.google.protobuf.ByteString value) { if (value == null) { @@ -20492,7 +20919,7 @@ public Builder setNonce(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes nonce = 5; + * bytes nonce = 5; */ public Builder clearNonce() { @@ -20503,13 +20930,13 @@ public Builder clearNonce() { private long nrg_ ; /** - * optional uint64 nrg = 6; + * uint64 nrg = 6; */ public long getNrg() { return nrg_; } /** - * optional uint64 nrg = 6; + * uint64 nrg = 6; */ public Builder setNrg(long value) { @@ -20518,7 +20945,7 @@ public Builder setNrg(long value) { return this; } /** - * optional uint64 nrg = 6; + * uint64 nrg = 6; */ public Builder clearNrg() { @@ -20529,13 +20956,13 @@ public Builder clearNrg() { private long nrgPrice_ ; /** - * optional uint64 nrgPrice = 7; + * uint64 nrgPrice = 7; */ public long getNrgPrice() { return nrgPrice_; } /** - * optional uint64 nrgPrice = 7; + * uint64 nrgPrice = 7; */ public Builder setNrgPrice(long value) { @@ -20544,7 +20971,7 @@ public Builder setNrgPrice(long value) { return this; } /** - * optional uint64 nrgPrice = 7; + * uint64 nrgPrice = 7; */ public Builder clearNrgPrice() { @@ -20554,12 +20981,12 @@ public Builder clearNrgPrice() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -20582,7 +21009,7 @@ 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); + return new req_sendTransaction(input, extensionRegistry); } }; @@ -20606,7 +21033,7 @@ public interface rsp_sendTransactionOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ com.google.protobuf.ByteString getTxHash(); } @@ -20617,6 +21044,7 @@ 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); @@ -20628,14 +21056,19 @@ private rsp_sendTransaction() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -20645,7 +21078,8 @@ private rsp_sendTransaction( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -20663,6 +21097,7 @@ private rsp_sendTransaction( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -20681,7 +21116,7 @@ private rsp_sendTransaction( public static final int TXHASH_FIELD_NUMBER = 1; private com.google.protobuf.ByteString txHash_; /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ public com.google.protobuf.ByteString getTxHash() { return txHash_; @@ -20702,6 +21137,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!txHash_.isEmpty()) { output.writeBytes(1, txHash_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -20713,11 +21149,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, txHash_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -20731,6 +21167,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getTxHash() .equals(other.getTxHash()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -20740,7 +21177,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TXHASH_FIELD_NUMBER; hash = (53 * hash) + getTxHash().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -20748,6 +21185,17 @@ public int hashCode() { 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 { @@ -20895,7 +21343,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -20908,12 +21356,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -20930,6 +21378,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_sendTransaction othe if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { setTxHash(other.getTxHash()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -20958,13 +21407,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ public com.google.protobuf.ByteString getTxHash() { return txHash_; } /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ public Builder setTxHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -20976,7 +21425,7 @@ public Builder setTxHash(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ public Builder clearTxHash() { @@ -20986,12 +21435,12 @@ public Builder clearTxHash() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -21014,7 +21463,7 @@ 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); + return new rsp_sendTransaction(input, extensionRegistry); } }; @@ -21038,7 +21487,7 @@ public interface req_getTransactionByHashOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ com.google.protobuf.ByteString getTxHash(); } @@ -21049,6 +21498,7 @@ 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); @@ -21060,14 +21510,19 @@ private req_getTransactionByHash() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -21077,7 +21532,8 @@ private req_getTransactionByHash( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -21095,6 +21551,7 @@ private req_getTransactionByHash( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -21113,7 +21570,7 @@ private req_getTransactionByHash( public static final int TXHASH_FIELD_NUMBER = 1; private com.google.protobuf.ByteString txHash_; /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ public com.google.protobuf.ByteString getTxHash() { return txHash_; @@ -21134,6 +21591,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!txHash_.isEmpty()) { output.writeBytes(1, txHash_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -21145,11 +21603,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, txHash_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -21163,6 +21621,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getTxHash() .equals(other.getTxHash()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -21172,7 +21631,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TXHASH_FIELD_NUMBER; hash = (53 * hash) + getTxHash().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -21180,6 +21639,17 @@ public int hashCode() { 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 { @@ -21327,7 +21797,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -21340,12 +21810,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -21362,6 +21832,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_getTransactionByHash if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { setTxHash(other.getTxHash()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -21390,13 +21861,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ public com.google.protobuf.ByteString getTxHash() { return txHash_; } /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ public Builder setTxHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -21408,7 +21879,7 @@ public Builder setTxHash(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ public Builder clearTxHash() { @@ -21418,12 +21889,12 @@ public Builder clearTxHash() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -21446,7 +21917,7 @@ 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); + return new req_getTransactionByHash(input, extensionRegistry); } }; @@ -21470,62 +21941,62 @@ public interface rsp_getTransactionOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional uint32 txIndex = 1; + * uint32 txIndex = 1; */ int getTxIndex(); /** - * optional uint64 blocknumber = 2; + * uint64 blocknumber = 2; */ long getBlocknumber(); /** - * optional uint64 timeStamp = 3; + * uint64 timeStamp = 3; */ long getTimeStamp(); /** - * optional uint64 nrgConsume = 4; + * uint64 nrgConsume = 4; */ long getNrgConsume(); /** - * optional uint64 nrgPrice = 5; + * uint64 nrgPrice = 5; */ long getNrgPrice(); /** - * optional bytes blockhash = 6; + * bytes blockhash = 6; */ com.google.protobuf.ByteString getBlockhash(); /** - * optional bytes from = 7; + * bytes from = 7; */ com.google.protobuf.ByteString getFrom(); /** - * optional bytes txHash = 8; + * bytes txHash = 8; */ com.google.protobuf.ByteString getTxHash(); /** - * optional bytes data = 9; + * bytes data = 9; */ com.google.protobuf.ByteString getData(); /** - * optional bytes nonce = 10; + * bytes nonce = 10; */ com.google.protobuf.ByteString getNonce(); /** - * optional bytes to = 11; + * bytes to = 11; */ com.google.protobuf.ByteString getTo(); /** - * optional bytes value = 12; + * bytes value = 12; */ com.google.protobuf.ByteString getValue(); } @@ -21536,6 +22007,7 @@ 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); @@ -21558,14 +22030,19 @@ private rsp_getTransaction() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -21575,7 +22052,8 @@ private rsp_getTransaction( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -21648,6 +22126,7 @@ private rsp_getTransaction( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -21666,7 +22145,7 @@ private rsp_getTransaction( public static final int TXINDEX_FIELD_NUMBER = 1; private int txIndex_; /** - * optional uint32 txIndex = 1; + * uint32 txIndex = 1; */ public int getTxIndex() { return txIndex_; @@ -21675,7 +22154,7 @@ public int getTxIndex() { public static final int BLOCKNUMBER_FIELD_NUMBER = 2; private long blocknumber_; /** - * optional uint64 blocknumber = 2; + * uint64 blocknumber = 2; */ public long getBlocknumber() { return blocknumber_; @@ -21684,7 +22163,7 @@ public long getBlocknumber() { public static final int TIMESTAMP_FIELD_NUMBER = 3; private long timeStamp_; /** - * optional uint64 timeStamp = 3; + * uint64 timeStamp = 3; */ public long getTimeStamp() { return timeStamp_; @@ -21693,7 +22172,7 @@ public long getTimeStamp() { public static final int NRGCONSUME_FIELD_NUMBER = 4; private long nrgConsume_; /** - * optional uint64 nrgConsume = 4; + * uint64 nrgConsume = 4; */ public long getNrgConsume() { return nrgConsume_; @@ -21702,7 +22181,7 @@ public long getNrgConsume() { public static final int NRGPRICE_FIELD_NUMBER = 5; private long nrgPrice_; /** - * optional uint64 nrgPrice = 5; + * uint64 nrgPrice = 5; */ public long getNrgPrice() { return nrgPrice_; @@ -21711,7 +22190,7 @@ public long getNrgPrice() { public static final int BLOCKHASH_FIELD_NUMBER = 6; private com.google.protobuf.ByteString blockhash_; /** - * optional bytes blockhash = 6; + * bytes blockhash = 6; */ public com.google.protobuf.ByteString getBlockhash() { return blockhash_; @@ -21720,7 +22199,7 @@ public com.google.protobuf.ByteString getBlockhash() { public static final int FROM_FIELD_NUMBER = 7; private com.google.protobuf.ByteString from_; /** - * optional bytes from = 7; + * bytes from = 7; */ public com.google.protobuf.ByteString getFrom() { return from_; @@ -21729,7 +22208,7 @@ public com.google.protobuf.ByteString getFrom() { public static final int TXHASH_FIELD_NUMBER = 8; private com.google.protobuf.ByteString txHash_; /** - * optional bytes txHash = 8; + * bytes txHash = 8; */ public com.google.protobuf.ByteString getTxHash() { return txHash_; @@ -21738,7 +22217,7 @@ public com.google.protobuf.ByteString getTxHash() { public static final int DATA_FIELD_NUMBER = 9; private com.google.protobuf.ByteString data_; /** - * optional bytes data = 9; + * bytes data = 9; */ public com.google.protobuf.ByteString getData() { return data_; @@ -21747,7 +22226,7 @@ public com.google.protobuf.ByteString getData() { public static final int NONCE_FIELD_NUMBER = 10; private com.google.protobuf.ByteString nonce_; /** - * optional bytes nonce = 10; + * bytes nonce = 10; */ public com.google.protobuf.ByteString getNonce() { return nonce_; @@ -21756,7 +22235,7 @@ public com.google.protobuf.ByteString getNonce() { public static final int TO_FIELD_NUMBER = 11; private com.google.protobuf.ByteString to_; /** - * optional bytes to = 11; + * bytes to = 11; */ public com.google.protobuf.ByteString getTo() { return to_; @@ -21765,7 +22244,7 @@ public com.google.protobuf.ByteString getTo() { public static final int VALUE_FIELD_NUMBER = 12; private com.google.protobuf.ByteString value_; /** - * optional bytes value = 12; + * bytes value = 12; */ public com.google.protobuf.ByteString getValue() { return value_; @@ -21819,6 +22298,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!value_.isEmpty()) { output.writeBytes(12, value_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -21874,11 +22354,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(12, value_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -21914,6 +22394,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getTo()); result = result && getValue() .equals(other.getValue()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -21923,7 +22404,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TXINDEX_FIELD_NUMBER; hash = (53 * hash) + getTxIndex(); hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; @@ -21957,6 +22438,17 @@ public int hashCode() { 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 { @@ -22137,7 +22629,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -22150,12 +22642,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -22205,6 +22697,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getTransaction other if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -22233,13 +22726,13 @@ public Builder mergeFrom( private int txIndex_ ; /** - * optional uint32 txIndex = 1; + * uint32 txIndex = 1; */ public int getTxIndex() { return txIndex_; } /** - * optional uint32 txIndex = 1; + * uint32 txIndex = 1; */ public Builder setTxIndex(int value) { @@ -22248,7 +22741,7 @@ public Builder setTxIndex(int value) { return this; } /** - * optional uint32 txIndex = 1; + * uint32 txIndex = 1; */ public Builder clearTxIndex() { @@ -22259,13 +22752,13 @@ public Builder clearTxIndex() { private long blocknumber_ ; /** - * optional uint64 blocknumber = 2; + * uint64 blocknumber = 2; */ public long getBlocknumber() { return blocknumber_; } /** - * optional uint64 blocknumber = 2; + * uint64 blocknumber = 2; */ public Builder setBlocknumber(long value) { @@ -22274,7 +22767,7 @@ public Builder setBlocknumber(long value) { return this; } /** - * optional uint64 blocknumber = 2; + * uint64 blocknumber = 2; */ public Builder clearBlocknumber() { @@ -22285,13 +22778,13 @@ public Builder clearBlocknumber() { private long timeStamp_ ; /** - * optional uint64 timeStamp = 3; + * uint64 timeStamp = 3; */ public long getTimeStamp() { return timeStamp_; } /** - * optional uint64 timeStamp = 3; + * uint64 timeStamp = 3; */ public Builder setTimeStamp(long value) { @@ -22300,7 +22793,7 @@ public Builder setTimeStamp(long value) { return this; } /** - * optional uint64 timeStamp = 3; + * uint64 timeStamp = 3; */ public Builder clearTimeStamp() { @@ -22311,13 +22804,13 @@ public Builder clearTimeStamp() { private long nrgConsume_ ; /** - * optional uint64 nrgConsume = 4; + * uint64 nrgConsume = 4; */ public long getNrgConsume() { return nrgConsume_; } /** - * optional uint64 nrgConsume = 4; + * uint64 nrgConsume = 4; */ public Builder setNrgConsume(long value) { @@ -22326,7 +22819,7 @@ public Builder setNrgConsume(long value) { return this; } /** - * optional uint64 nrgConsume = 4; + * uint64 nrgConsume = 4; */ public Builder clearNrgConsume() { @@ -22337,13 +22830,13 @@ public Builder clearNrgConsume() { private long nrgPrice_ ; /** - * optional uint64 nrgPrice = 5; + * uint64 nrgPrice = 5; */ public long getNrgPrice() { return nrgPrice_; } /** - * optional uint64 nrgPrice = 5; + * uint64 nrgPrice = 5; */ public Builder setNrgPrice(long value) { @@ -22352,7 +22845,7 @@ public Builder setNrgPrice(long value) { return this; } /** - * optional uint64 nrgPrice = 5; + * uint64 nrgPrice = 5; */ public Builder clearNrgPrice() { @@ -22363,13 +22856,13 @@ public Builder clearNrgPrice() { private com.google.protobuf.ByteString blockhash_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes blockhash = 6; + * bytes blockhash = 6; */ public com.google.protobuf.ByteString getBlockhash() { return blockhash_; } /** - * optional bytes blockhash = 6; + * bytes blockhash = 6; */ public Builder setBlockhash(com.google.protobuf.ByteString value) { if (value == null) { @@ -22381,7 +22874,7 @@ public Builder setBlockhash(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes blockhash = 6; + * bytes blockhash = 6; */ public Builder clearBlockhash() { @@ -22392,13 +22885,13 @@ public Builder clearBlockhash() { private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes from = 7; + * bytes from = 7; */ public com.google.protobuf.ByteString getFrom() { return from_; } /** - * optional bytes from = 7; + * bytes from = 7; */ public Builder setFrom(com.google.protobuf.ByteString value) { if (value == null) { @@ -22410,7 +22903,7 @@ public Builder setFrom(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes from = 7; + * bytes from = 7; */ public Builder clearFrom() { @@ -22421,13 +22914,13 @@ public Builder clearFrom() { private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes txHash = 8; + * bytes txHash = 8; */ public com.google.protobuf.ByteString getTxHash() { return txHash_; } /** - * optional bytes txHash = 8; + * bytes txHash = 8; */ public Builder setTxHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -22439,7 +22932,7 @@ public Builder setTxHash(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes txHash = 8; + * bytes txHash = 8; */ public Builder clearTxHash() { @@ -22450,13 +22943,13 @@ public Builder clearTxHash() { private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes data = 9; + * bytes data = 9; */ public com.google.protobuf.ByteString getData() { return data_; } /** - * optional bytes data = 9; + * bytes data = 9; */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { @@ -22468,7 +22961,7 @@ public Builder setData(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes data = 9; + * bytes data = 9; */ public Builder clearData() { @@ -22479,13 +22972,13 @@ public Builder clearData() { private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes nonce = 10; + * bytes nonce = 10; */ public com.google.protobuf.ByteString getNonce() { return nonce_; } /** - * optional bytes nonce = 10; + * bytes nonce = 10; */ public Builder setNonce(com.google.protobuf.ByteString value) { if (value == null) { @@ -22497,7 +22990,7 @@ public Builder setNonce(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes nonce = 10; + * bytes nonce = 10; */ public Builder clearNonce() { @@ -22508,13 +23001,13 @@ public Builder clearNonce() { private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes to = 11; + * bytes to = 11; */ public com.google.protobuf.ByteString getTo() { return to_; } /** - * optional bytes to = 11; + * bytes to = 11; */ public Builder setTo(com.google.protobuf.ByteString value) { if (value == null) { @@ -22526,7 +23019,7 @@ public Builder setTo(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes to = 11; + * bytes to = 11; */ public Builder clearTo() { @@ -22537,13 +23030,13 @@ public Builder clearTo() { private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes value = 12; + * bytes value = 12; */ public com.google.protobuf.ByteString getValue() { return value_; } /** - * optional bytes value = 12; + * bytes value = 12; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { @@ -22555,7 +23048,7 @@ public Builder setValue(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes value = 12; + * bytes value = 12; */ public Builder clearValue() { @@ -22565,12 +23058,12 @@ public Builder clearValue() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -22593,7 +23086,7 @@ 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); + return new rsp_getTransaction(input, extensionRegistry); } }; @@ -22617,22 +23110,22 @@ public interface req_unlockAccountOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes account = 1; + * bytes account = 1; */ com.google.protobuf.ByteString getAccount(); /** - * optional string password = 2; + * string password = 2; */ java.lang.String getPassword(); /** - * optional string password = 2; + * string password = 2; */ com.google.protobuf.ByteString getPasswordBytes(); /** - * optional uint32 duration = 3; + * uint32 duration = 3; */ int getDuration(); } @@ -22643,6 +23136,7 @@ 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); @@ -22656,14 +23150,19 @@ private req_unlockAccount() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -22673,7 +23172,8 @@ private req_unlockAccount( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -22702,6 +23202,7 @@ private req_unlockAccount( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -22720,7 +23221,7 @@ private req_unlockAccount( public static final int ACCOUNT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString account_; /** - * optional bytes account = 1; + * bytes account = 1; */ public com.google.protobuf.ByteString getAccount() { return account_; @@ -22729,7 +23230,7 @@ public com.google.protobuf.ByteString getAccount() { public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** - * optional string password = 2; + * string password = 2; */ public java.lang.String getPassword() { java.lang.Object ref = password_; @@ -22744,7 +23245,7 @@ public java.lang.String getPassword() { } } /** - * optional string password = 2; + * string password = 2; */ public com.google.protobuf.ByteString getPasswordBytes() { @@ -22763,7 +23264,7 @@ public java.lang.String getPassword() { public static final int DURATION_FIELD_NUMBER = 3; private int duration_; /** - * optional uint32 duration = 3; + * uint32 duration = 3; */ public int getDuration() { return duration_; @@ -22790,6 +23291,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (duration_ != 0) { output.writeUInt32(3, duration_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -22808,11 +23310,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, duration_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -22830,6 +23332,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getPassword()); result = result && (getDuration() == other.getDuration()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -22839,7 +23342,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; hash = (53 * hash) + getAccount().hashCode(); hash = (37 * hash) + PASSWORD_FIELD_NUMBER; @@ -22851,6 +23354,17 @@ public int hashCode() { 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 { @@ -23004,7 +23518,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -23017,12 +23531,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -23046,6 +23560,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_unlockAccount other) if (other.getDuration() != 0) { setDuration(other.getDuration()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -23074,13 +23589,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString account_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes account = 1; + * bytes account = 1; */ public com.google.protobuf.ByteString getAccount() { return account_; } /** - * optional bytes account = 1; + * bytes account = 1; */ public Builder setAccount(com.google.protobuf.ByteString value) { if (value == null) { @@ -23092,7 +23607,7 @@ public Builder setAccount(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes account = 1; + * bytes account = 1; */ public Builder clearAccount() { @@ -23103,7 +23618,7 @@ public Builder clearAccount() { private java.lang.Object password_ = ""; /** - * optional string password = 2; + * string password = 2; */ public java.lang.String getPassword() { java.lang.Object ref = password_; @@ -23118,7 +23633,7 @@ public java.lang.String getPassword() { } } /** - * optional string password = 2; + * string password = 2; */ public com.google.protobuf.ByteString getPasswordBytes() { @@ -23134,7 +23649,7 @@ public java.lang.String getPassword() { } } /** - * optional string password = 2; + * string password = 2; */ public Builder setPassword( java.lang.String value) { @@ -23147,7 +23662,7 @@ public Builder setPassword( return this; } /** - * optional string password = 2; + * string password = 2; */ public Builder clearPassword() { @@ -23156,7 +23671,7 @@ public Builder clearPassword() { return this; } /** - * optional string password = 2; + * string password = 2; */ public Builder setPasswordBytes( com.google.protobuf.ByteString value) { @@ -23172,13 +23687,13 @@ public Builder setPasswordBytes( private int duration_ ; /** - * optional uint32 duration = 3; + * uint32 duration = 3; */ public int getDuration() { return duration_; } /** - * optional uint32 duration = 3; + * uint32 duration = 3; */ public Builder setDuration(int value) { @@ -23187,7 +23702,7 @@ public Builder setDuration(int value) { return this; } /** - * optional uint32 duration = 3; + * uint32 duration = 3; */ public Builder clearDuration() { @@ -23197,12 +23712,12 @@ public Builder clearDuration() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -23225,7 +23740,7 @@ 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); + return new req_unlockAccount(input, extensionRegistry); } }; @@ -23268,6 +23783,7 @@ 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); @@ -23279,14 +23795,19 @@ private rsp_accounts() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -23296,7 +23817,8 @@ private rsp_accounts( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -23320,6 +23842,7 @@ private rsp_accounts( if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { accout_ = java.util.Collections.unmodifiableList(accout_); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -23372,6 +23895,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < accout_.size(); i++) { output.writeBytes(1, accout_.get(i)); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -23388,11 +23912,11 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAccoutList().size(); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -23406,6 +23930,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getAccoutList() .equals(other.getAccoutList()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -23415,7 +23940,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); if (getAccoutCount() > 0) { hash = (37 * hash) + ACCOUT_FIELD_NUMBER; hash = (53 * hash) + getAccoutList().hashCode(); @@ -23425,6 +23950,17 @@ public int hashCode() { 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 { @@ -23577,7 +24113,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -23590,12 +24126,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -23619,6 +24155,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_accounts other) { } onChanged(); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -23719,12 +24256,12 @@ public Builder clearAccout() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -23747,7 +24284,7 @@ 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); + return new rsp_accounts(input, extensionRegistry); } }; @@ -23771,11 +24308,11 @@ public interface req_compileOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional string code = 1; + * string code = 1; */ java.lang.String getCode(); /** - * optional string code = 1; + * string code = 1; */ com.google.protobuf.ByteString getCodeBytes(); @@ -23787,6 +24324,7 @@ 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); @@ -23798,14 +24336,19 @@ private req_compile() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -23815,7 +24358,8 @@ private req_compile( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -23834,6 +24378,7 @@ private req_compile( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -23852,7 +24397,7 @@ private req_compile( public static final int CODE_FIELD_NUMBER = 1; private volatile java.lang.Object code_; /** - * optional string code = 1; + * string code = 1; */ public java.lang.String getCode() { java.lang.Object ref = code_; @@ -23867,7 +24412,7 @@ public java.lang.String getCode() { } } /** - * optional string code = 1; + * string code = 1; */ public com.google.protobuf.ByteString getCodeBytes() { @@ -23898,6 +24443,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getCodeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -23908,11 +24454,11 @@ public int getSerializedSize() { if (!getCodeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -23926,6 +24472,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getCode() .equals(other.getCode()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -23935,7 +24482,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + getCode().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -23943,6 +24490,17 @@ public int hashCode() { 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 { @@ -24090,7 +24648,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -24103,12 +24661,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -24126,6 +24684,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_compile other) { code_ = other.code_; onChanged(); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -24154,7 +24713,7 @@ public Builder mergeFrom( private java.lang.Object code_ = ""; /** - * optional string code = 1; + * string code = 1; */ public java.lang.String getCode() { java.lang.Object ref = code_; @@ -24169,7 +24728,7 @@ public java.lang.String getCode() { } } /** - * optional string code = 1; + * string code = 1; */ public com.google.protobuf.ByteString getCodeBytes() { @@ -24185,7 +24744,7 @@ public java.lang.String getCode() { } } /** - * optional string code = 1; + * string code = 1; */ public Builder setCode( java.lang.String value) { @@ -24198,7 +24757,7 @@ public Builder setCode( return this; } /** - * optional string code = 1; + * string code = 1; */ public Builder clearCode() { @@ -24207,7 +24766,7 @@ public Builder clearCode() { return this; } /** - * optional string code = 1; + * string code = 1; */ public Builder setCodeBytes( com.google.protobuf.ByteString value) { @@ -24222,12 +24781,12 @@ public Builder setCodeBytes( } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -24250,7 +24809,7 @@ 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); + return new req_compile(input, extensionRegistry); } }; @@ -24314,6 +24873,7 @@ 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); @@ -24324,14 +24884,19 @@ private rsp_compile() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -24341,7 +24906,8 @@ private rsp_compile( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -24353,9 +24919,10 @@ private rsp_compile( mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry - constracts = input.readMessage( + constracts__ = input.readMessage( ConstractsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - constracts_.getMutableMap().put(constracts.getKey(), constracts.getValue()); + constracts_.getMutableMap().put( + constracts__.getKey(), constracts__.getValue()); break; } } @@ -24366,6 +24933,7 @@ private rsp_compile( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -24480,15 +25048,13 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (java.util.Map.Entry entry - : internalGetConstracts().getMap().entrySet()) { - com.google.protobuf.MapEntry - constracts = ConstractsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - output.writeMessage(1, constracts); - } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetConstracts(), + ConstractsDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -24499,18 +25065,18 @@ public int getSerializedSize() { for (java.util.Map.Entry entry : internalGetConstracts().getMap().entrySet()) { com.google.protobuf.MapEntry - constracts = ConstractsDefaultEntryHolder.defaultEntry.newBuilderForType() + constracts__ = ConstractsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, constracts); + .computeMessageSize(1, constracts__); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -24524,6 +25090,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && internalGetConstracts().equals( other.internalGetConstracts()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -24533,7 +25100,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); if (!internalGetConstracts().getMap().isEmpty()) { hash = (37 * hash) + CONSTRACTS_FIELD_NUMBER; hash = (53 * hash) + internalGetConstracts().hashCode(); @@ -24543,6 +25110,17 @@ public int hashCode() { 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 { @@ -24713,7 +25291,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -24726,12 +25304,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -24747,6 +25325,7 @@ 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; } @@ -24851,7 +25430,8 @@ public org.aion.api.server.pb.Message.t_Contract getConstractsOrThrow( } public Builder clearConstracts() { - getMutableConstracts().clear(); + internalGetMutableConstracts().getMutableMap() + .clear(); return this; } /** @@ -24861,7 +25441,8 @@ public Builder clearConstracts() { public Builder removeConstracts( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } - getMutableConstracts().remove(key); + internalGetMutableConstracts().getMutableMap() + .remove(key); return this; } /** @@ -24880,7 +25461,8 @@ public Builder putConstracts( 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(); } - getMutableConstracts().put(key, value); + internalGetMutableConstracts().getMutableMap() + .put(key, value); return this; } /** @@ -24889,17 +25471,18 @@ public Builder putConstracts( public Builder putAllConstracts( java.util.Map values) { - getMutableConstracts().putAll(values); + internalGetMutableConstracts().getMutableMap() + .putAll(values); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -24922,7 +25505,7 @@ 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); + return new rsp_compile(input, extensionRegistry); } }; @@ -24946,12 +25529,12 @@ public interface req_getCodeOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes address = 1; + * bytes address = 1; */ com.google.protobuf.ByteString getAddress(); /** - * optional uint64 blocknumber = 2; + * uint64 blocknumber = 2; */ long getBlocknumber(); } @@ -24962,6 +25545,7 @@ 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); @@ -24974,14 +25558,19 @@ private req_getCode() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -24991,7 +25580,8 @@ private req_getCode( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -25014,6 +25604,7 @@ private req_getCode( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -25032,7 +25623,7 @@ private req_getCode( public static final int ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString address_; /** - * optional bytes address = 1; + * bytes address = 1; */ public com.google.protobuf.ByteString getAddress() { return address_; @@ -25041,7 +25632,7 @@ public com.google.protobuf.ByteString getAddress() { public static final int BLOCKNUMBER_FIELD_NUMBER = 2; private long blocknumber_; /** - * optional uint64 blocknumber = 2; + * uint64 blocknumber = 2; */ public long getBlocknumber() { return blocknumber_; @@ -25065,6 +25656,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (blocknumber_ != 0L) { output.writeUInt64(2, blocknumber_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -25080,11 +25672,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, blocknumber_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -25100,6 +25692,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getAddress()); result = result && (getBlocknumber() == other.getBlocknumber()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -25109,7 +25702,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; @@ -25120,6 +25713,17 @@ public int hashCode() { 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 { @@ -25270,7 +25874,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -25283,12 +25887,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -25308,6 +25912,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_getCode other) { if (other.getBlocknumber() != 0L) { setBlocknumber(other.getBlocknumber()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -25336,13 +25941,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes address = 1; + * bytes address = 1; */ public com.google.protobuf.ByteString getAddress() { return address_; } /** - * optional bytes address = 1; + * bytes address = 1; */ public Builder setAddress(com.google.protobuf.ByteString value) { if (value == null) { @@ -25354,7 +25959,7 @@ public Builder setAddress(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes address = 1; + * bytes address = 1; */ public Builder clearAddress() { @@ -25365,13 +25970,13 @@ public Builder clearAddress() { private long blocknumber_ ; /** - * optional uint64 blocknumber = 2; + * uint64 blocknumber = 2; */ public long getBlocknumber() { return blocknumber_; } /** - * optional uint64 blocknumber = 2; + * uint64 blocknumber = 2; */ public Builder setBlocknumber(long value) { @@ -25380,7 +25985,7 @@ public Builder setBlocknumber(long value) { return this; } /** - * optional uint64 blocknumber = 2; + * uint64 blocknumber = 2; */ public Builder clearBlocknumber() { @@ -25390,12 +25995,12 @@ public Builder clearBlocknumber() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -25418,7 +26023,7 @@ 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); + return new req_getCode(input, extensionRegistry); } }; @@ -25442,7 +26047,7 @@ public interface rsp_getCodeOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes code = 1; + * bytes code = 1; */ com.google.protobuf.ByteString getCode(); } @@ -25453,6 +26058,7 @@ 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); @@ -25464,14 +26070,19 @@ private rsp_getCode() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -25481,7 +26092,8 @@ private rsp_getCode( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -25499,6 +26111,7 @@ private rsp_getCode( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -25517,7 +26130,7 @@ private rsp_getCode( public static final int CODE_FIELD_NUMBER = 1; private com.google.protobuf.ByteString code_; /** - * optional bytes code = 1; + * bytes code = 1; */ public com.google.protobuf.ByteString getCode() { return code_; @@ -25538,6 +26151,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!code_.isEmpty()) { output.writeBytes(1, code_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -25549,11 +26163,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, code_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -25567,6 +26181,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getCode() .equals(other.getCode()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -25576,7 +26191,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + getCode().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -25584,6 +26199,17 @@ public int hashCode() { 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 { @@ -25731,7 +26357,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -25744,12 +26370,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -25766,6 +26392,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getCode other) { if (other.getCode() != com.google.protobuf.ByteString.EMPTY) { setCode(other.getCode()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -25794,13 +26421,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString code_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes code = 1; + * bytes code = 1; */ public com.google.protobuf.ByteString getCode() { return code_; } /** - * optional bytes code = 1; + * bytes code = 1; */ public Builder setCode(com.google.protobuf.ByteString value) { if (value == null) { @@ -25812,7 +26439,7 @@ public Builder setCode(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes code = 1; + * bytes code = 1; */ public Builder clearCode() { @@ -25822,12 +26449,12 @@ public Builder clearCode() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -25850,7 +26477,7 @@ 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); + return new rsp_getCode(input, extensionRegistry); } }; @@ -25874,27 +26501,27 @@ public interface req_contractDeployOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional uint64 nrgLimit = 1; + * uint64 nrgLimit = 1; */ long getNrgLimit(); /** - * optional uint64 nrgPrice = 2; + * uint64 nrgPrice = 2; */ long getNrgPrice(); /** - * optional bytes from = 3; + * bytes from = 3; */ com.google.protobuf.ByteString getFrom(); /** - * optional bytes data = 4; + * bytes data = 4; */ com.google.protobuf.ByteString getData(); /** - * optional bytes value = 5; + * bytes value = 5; */ com.google.protobuf.ByteString getValue(); } @@ -25905,6 +26532,7 @@ 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); @@ -25920,14 +26548,19 @@ private req_contractDeploy() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -25937,7 +26570,8 @@ private req_contractDeploy( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -25975,6 +26609,7 @@ private req_contractDeploy( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -25993,7 +26628,7 @@ private req_contractDeploy( public static final int NRGLIMIT_FIELD_NUMBER = 1; private long nrgLimit_; /** - * optional uint64 nrgLimit = 1; + * uint64 nrgLimit = 1; */ public long getNrgLimit() { return nrgLimit_; @@ -26002,7 +26637,7 @@ public long getNrgLimit() { public static final int NRGPRICE_FIELD_NUMBER = 2; private long nrgPrice_; /** - * optional uint64 nrgPrice = 2; + * uint64 nrgPrice = 2; */ public long getNrgPrice() { return nrgPrice_; @@ -26011,7 +26646,7 @@ public long getNrgPrice() { public static final int FROM_FIELD_NUMBER = 3; private com.google.protobuf.ByteString from_; /** - * optional bytes from = 3; + * bytes from = 3; */ public com.google.protobuf.ByteString getFrom() { return from_; @@ -26020,7 +26655,7 @@ public com.google.protobuf.ByteString getFrom() { public static final int DATA_FIELD_NUMBER = 4; private com.google.protobuf.ByteString data_; /** - * optional bytes data = 4; + * bytes data = 4; */ public com.google.protobuf.ByteString getData() { return data_; @@ -26029,7 +26664,7 @@ public com.google.protobuf.ByteString getData() { public static final int VALUE_FIELD_NUMBER = 5; private com.google.protobuf.ByteString value_; /** - * optional bytes value = 5; + * bytes value = 5; */ public com.google.protobuf.ByteString getValue() { return value_; @@ -26062,6 +26697,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!value_.isEmpty()) { output.writeBytes(5, value_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -26089,11 +26725,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, value_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -26115,6 +26751,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getData()); result = result && getValue() .equals(other.getValue()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -26124,7 +26761,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NRGLIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNrgLimit()); @@ -26142,6 +26779,17 @@ public int hashCode() { 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 { @@ -26301,7 +26949,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -26314,12 +26962,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -26348,6 +26996,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_contractDeploy other if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -26376,13 +27025,13 @@ public Builder mergeFrom( private long nrgLimit_ ; /** - * optional uint64 nrgLimit = 1; + * uint64 nrgLimit = 1; */ public long getNrgLimit() { return nrgLimit_; } /** - * optional uint64 nrgLimit = 1; + * uint64 nrgLimit = 1; */ public Builder setNrgLimit(long value) { @@ -26391,7 +27040,7 @@ public Builder setNrgLimit(long value) { return this; } /** - * optional uint64 nrgLimit = 1; + * uint64 nrgLimit = 1; */ public Builder clearNrgLimit() { @@ -26402,13 +27051,13 @@ public Builder clearNrgLimit() { private long nrgPrice_ ; /** - * optional uint64 nrgPrice = 2; + * uint64 nrgPrice = 2; */ public long getNrgPrice() { return nrgPrice_; } /** - * optional uint64 nrgPrice = 2; + * uint64 nrgPrice = 2; */ public Builder setNrgPrice(long value) { @@ -26417,7 +27066,7 @@ public Builder setNrgPrice(long value) { return this; } /** - * optional uint64 nrgPrice = 2; + * uint64 nrgPrice = 2; */ public Builder clearNrgPrice() { @@ -26428,13 +27077,13 @@ public Builder clearNrgPrice() { private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes from = 3; + * bytes from = 3; */ public com.google.protobuf.ByteString getFrom() { return from_; } /** - * optional bytes from = 3; + * bytes from = 3; */ public Builder setFrom(com.google.protobuf.ByteString value) { if (value == null) { @@ -26446,7 +27095,7 @@ public Builder setFrom(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes from = 3; + * bytes from = 3; */ public Builder clearFrom() { @@ -26457,13 +27106,13 @@ public Builder clearFrom() { private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes data = 4; + * bytes data = 4; */ public com.google.protobuf.ByteString getData() { return data_; } /** - * optional bytes data = 4; + * bytes data = 4; */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { @@ -26475,7 +27124,7 @@ public Builder setData(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes data = 4; + * bytes data = 4; */ public Builder clearData() { @@ -26486,13 +27135,13 @@ public Builder clearData() { private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes value = 5; + * bytes value = 5; */ public com.google.protobuf.ByteString getValue() { return value_; } /** - * optional bytes value = 5; + * bytes value = 5; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { @@ -26504,7 +27153,7 @@ public Builder setValue(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes value = 5; + * bytes value = 5; */ public Builder clearValue() { @@ -26514,12 +27163,12 @@ public Builder clearValue() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -26542,7 +27191,7 @@ 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); + return new req_contractDeploy(input, extensionRegistry); } }; @@ -26566,12 +27215,12 @@ public interface rsp_contractDeployOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ com.google.protobuf.ByteString getTxHash(); /** - * optional bytes contractAddress = 2; + * bytes contractAddress = 2; */ com.google.protobuf.ByteString getContractAddress(); } @@ -26582,6 +27231,7 @@ 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); @@ -26594,14 +27244,19 @@ private rsp_contractDeploy() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -26611,7 +27266,8 @@ private rsp_contractDeploy( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -26634,6 +27290,7 @@ private rsp_contractDeploy( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -26652,7 +27309,7 @@ private rsp_contractDeploy( public static final int TXHASH_FIELD_NUMBER = 1; private com.google.protobuf.ByteString txHash_; /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ public com.google.protobuf.ByteString getTxHash() { return txHash_; @@ -26661,7 +27318,7 @@ public com.google.protobuf.ByteString getTxHash() { public static final int CONTRACTADDRESS_FIELD_NUMBER = 2; private com.google.protobuf.ByteString contractAddress_; /** - * optional bytes contractAddress = 2; + * bytes contractAddress = 2; */ public com.google.protobuf.ByteString getContractAddress() { return contractAddress_; @@ -26685,6 +27342,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!contractAddress_.isEmpty()) { output.writeBytes(2, contractAddress_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -26700,11 +27358,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, contractAddress_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -26720,6 +27378,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getTxHash()); result = result && getContractAddress() .equals(other.getContractAddress()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -26729,7 +27388,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TXHASH_FIELD_NUMBER; hash = (53 * hash) + getTxHash().hashCode(); hash = (37 * hash) + CONTRACTADDRESS_FIELD_NUMBER; @@ -26739,6 +27398,17 @@ public int hashCode() { 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 { @@ -26889,7 +27559,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -26902,12 +27572,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -26927,6 +27597,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_contractDeploy other if (other.getContractAddress() != com.google.protobuf.ByteString.EMPTY) { setContractAddress(other.getContractAddress()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -26955,13 +27626,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ public com.google.protobuf.ByteString getTxHash() { return txHash_; } /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ public Builder setTxHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -26973,7 +27644,7 @@ public Builder setTxHash(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ public Builder clearTxHash() { @@ -26984,13 +27655,13 @@ public Builder clearTxHash() { private com.google.protobuf.ByteString contractAddress_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes contractAddress = 2; + * bytes contractAddress = 2; */ public com.google.protobuf.ByteString getContractAddress() { return contractAddress_; } /** - * optional bytes contractAddress = 2; + * bytes contractAddress = 2; */ public Builder setContractAddress(com.google.protobuf.ByteString value) { if (value == null) { @@ -27002,7 +27673,7 @@ public Builder setContractAddress(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes contractAddress = 2; + * bytes contractAddress = 2; */ public Builder clearContractAddress() { @@ -27012,12 +27683,12 @@ public Builder clearContractAddress() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -27040,7 +27711,7 @@ 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); + return new rsp_contractDeploy(input, extensionRegistry); } }; @@ -27064,32 +27735,32 @@ public interface req_callOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes from = 1; + * bytes from = 1; */ com.google.protobuf.ByteString getFrom(); /** - * optional bytes to = 2; + * bytes to = 2; */ com.google.protobuf.ByteString getTo(); /** - * optional bytes data = 3; + * bytes data = 3; */ com.google.protobuf.ByteString getData(); /** - * optional bytes value = 4; + * bytes value = 4; */ com.google.protobuf.ByteString getValue(); /** - * optional uint64 nrg = 5; + * uint64 nrg = 5; */ long getNrg(); /** - * optional uint64 nrgPrice = 6; + * uint64 nrgPrice = 6; */ long getNrgPrice(); } @@ -27100,6 +27771,7 @@ 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); @@ -27116,14 +27788,19 @@ private req_call() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -27133,7 +27810,8 @@ private req_call( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -27176,6 +27854,7 @@ private req_call( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -27194,7 +27873,7 @@ private req_call( public static final int FROM_FIELD_NUMBER = 1; private com.google.protobuf.ByteString from_; /** - * optional bytes from = 1; + * bytes from = 1; */ public com.google.protobuf.ByteString getFrom() { return from_; @@ -27203,7 +27882,7 @@ public com.google.protobuf.ByteString getFrom() { public static final int TO_FIELD_NUMBER = 2; private com.google.protobuf.ByteString to_; /** - * optional bytes to = 2; + * bytes to = 2; */ public com.google.protobuf.ByteString getTo() { return to_; @@ -27212,7 +27891,7 @@ public com.google.protobuf.ByteString getTo() { public static final int DATA_FIELD_NUMBER = 3; private com.google.protobuf.ByteString data_; /** - * optional bytes data = 3; + * bytes data = 3; */ public com.google.protobuf.ByteString getData() { return data_; @@ -27221,7 +27900,7 @@ public com.google.protobuf.ByteString getData() { public static final int VALUE_FIELD_NUMBER = 4; private com.google.protobuf.ByteString value_; /** - * optional bytes value = 4; + * bytes value = 4; */ public com.google.protobuf.ByteString getValue() { return value_; @@ -27230,7 +27909,7 @@ public com.google.protobuf.ByteString getValue() { public static final int NRG_FIELD_NUMBER = 5; private long nrg_; /** - * optional uint64 nrg = 5; + * uint64 nrg = 5; */ public long getNrg() { return nrg_; @@ -27239,7 +27918,7 @@ public long getNrg() { public static final int NRGPRICE_FIELD_NUMBER = 6; private long nrgPrice_; /** - * optional uint64 nrgPrice = 6; + * uint64 nrgPrice = 6; */ public long getNrgPrice() { return nrgPrice_; @@ -27275,6 +27954,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (nrgPrice_ != 0L) { output.writeUInt64(6, nrgPrice_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -27306,11 +27986,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, nrgPrice_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -27334,6 +28014,7 @@ public boolean equals(final java.lang.Object obj) { == other.getNrg()); result = result && (getNrgPrice() == other.getNrgPrice()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -27343,7 +28024,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FROM_FIELD_NUMBER; hash = (53 * hash) + getFrom().hashCode(); hash = (37 * hash) + TO_FIELD_NUMBER; @@ -27363,6 +28044,17 @@ public int hashCode() { 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 { @@ -27525,7 +28217,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -27538,12 +28230,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -27575,6 +28267,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_call other) { if (other.getNrgPrice() != 0L) { setNrgPrice(other.getNrgPrice()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -27603,13 +28296,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes from = 1; + * bytes from = 1; */ public com.google.protobuf.ByteString getFrom() { return from_; } /** - * optional bytes from = 1; + * bytes from = 1; */ public Builder setFrom(com.google.protobuf.ByteString value) { if (value == null) { @@ -27621,7 +28314,7 @@ public Builder setFrom(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes from = 1; + * bytes from = 1; */ public Builder clearFrom() { @@ -27632,13 +28325,13 @@ public Builder clearFrom() { private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes to = 2; + * bytes to = 2; */ public com.google.protobuf.ByteString getTo() { return to_; } /** - * optional bytes to = 2; + * bytes to = 2; */ public Builder setTo(com.google.protobuf.ByteString value) { if (value == null) { @@ -27650,7 +28343,7 @@ public Builder setTo(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes to = 2; + * bytes to = 2; */ public Builder clearTo() { @@ -27661,13 +28354,13 @@ public Builder clearTo() { private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes data = 3; + * bytes data = 3; */ public com.google.protobuf.ByteString getData() { return data_; } /** - * optional bytes data = 3; + * bytes data = 3; */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { @@ -27679,7 +28372,7 @@ public Builder setData(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes data = 3; + * bytes data = 3; */ public Builder clearData() { @@ -27690,13 +28383,13 @@ public Builder clearData() { private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes value = 4; + * bytes value = 4; */ public com.google.protobuf.ByteString getValue() { return value_; } /** - * optional bytes value = 4; + * bytes value = 4; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { @@ -27708,7 +28401,7 @@ public Builder setValue(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes value = 4; + * bytes value = 4; */ public Builder clearValue() { @@ -27719,13 +28412,13 @@ public Builder clearValue() { private long nrg_ ; /** - * optional uint64 nrg = 5; + * uint64 nrg = 5; */ public long getNrg() { return nrg_; } /** - * optional uint64 nrg = 5; + * uint64 nrg = 5; */ public Builder setNrg(long value) { @@ -27734,7 +28427,7 @@ public Builder setNrg(long value) { return this; } /** - * optional uint64 nrg = 5; + * uint64 nrg = 5; */ public Builder clearNrg() { @@ -27745,13 +28438,13 @@ public Builder clearNrg() { private long nrgPrice_ ; /** - * optional uint64 nrgPrice = 6; + * uint64 nrgPrice = 6; */ public long getNrgPrice() { return nrgPrice_; } /** - * optional uint64 nrgPrice = 6; + * uint64 nrgPrice = 6; */ public Builder setNrgPrice(long value) { @@ -27760,7 +28453,7 @@ public Builder setNrgPrice(long value) { return this; } /** - * optional uint64 nrgPrice = 6; + * uint64 nrgPrice = 6; */ public Builder clearNrgPrice() { @@ -27770,12 +28463,12 @@ public Builder clearNrgPrice() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -27798,7 +28491,7 @@ 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); + return new req_call(input, extensionRegistry); } }; @@ -27822,7 +28515,7 @@ public interface rsp_callOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes result = 1; + * bytes result = 1; */ com.google.protobuf.ByteString getResult(); } @@ -27833,6 +28526,7 @@ 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); @@ -27844,14 +28538,19 @@ private rsp_call() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -27861,7 +28560,8 @@ private rsp_call( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -27879,6 +28579,7 @@ private rsp_call( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -27897,7 +28598,7 @@ private rsp_call( public static final int RESULT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString result_; /** - * optional bytes result = 1; + * bytes result = 1; */ public com.google.protobuf.ByteString getResult() { return result_; @@ -27918,6 +28619,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!result_.isEmpty()) { output.writeBytes(1, result_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -27929,11 +28631,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, result_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -27947,6 +28649,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getResult() .equals(other.getResult()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -27956,7 +28659,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + getResult().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -27964,6 +28667,17 @@ public int hashCode() { 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 { @@ -28111,7 +28825,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -28124,12 +28838,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -28146,6 +28860,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_call other) { if (other.getResult() != com.google.protobuf.ByteString.EMPTY) { setResult(other.getResult()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -28174,13 +28889,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString result_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes result = 1; + * bytes result = 1; */ public com.google.protobuf.ByteString getResult() { return result_; } /** - * optional bytes result = 1; + * bytes result = 1; */ public Builder setResult(com.google.protobuf.ByteString value) { if (value == null) { @@ -28192,7 +28907,7 @@ public Builder setResult(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes result = 1; + * bytes result = 1; */ public Builder clearResult() { @@ -28202,12 +28917,12 @@ public Builder clearResult() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -28230,7 +28945,7 @@ 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); + return new rsp_call(input, extensionRegistry); } }; @@ -28254,7 +28969,7 @@ public interface req_getBlockByHashOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes blockHash = 1; + * bytes blockHash = 1; */ com.google.protobuf.ByteString getBlockHash(); } @@ -28265,6 +28980,7 @@ 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); @@ -28276,14 +28992,19 @@ private req_getBlockByHash() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -28293,7 +29014,8 @@ private req_getBlockByHash( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -28311,6 +29033,7 @@ private req_getBlockByHash( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -28329,7 +29052,7 @@ private req_getBlockByHash( public static final int BLOCKHASH_FIELD_NUMBER = 1; private com.google.protobuf.ByteString blockHash_; /** - * optional bytes blockHash = 1; + * bytes blockHash = 1; */ public com.google.protobuf.ByteString getBlockHash() { return blockHash_; @@ -28350,6 +29073,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!blockHash_.isEmpty()) { output.writeBytes(1, blockHash_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -28361,11 +29085,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, blockHash_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -28379,6 +29103,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getBlockHash() .equals(other.getBlockHash()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -28388,7 +29113,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; hash = (53 * hash) + getBlockHash().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -28396,6 +29121,17 @@ public int hashCode() { 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 { @@ -28543,7 +29279,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -28556,12 +29292,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -28578,6 +29314,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockByHash other if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { setBlockHash(other.getBlockHash()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -28606,13 +29343,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString blockHash_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes blockHash = 1; + * bytes blockHash = 1; */ public com.google.protobuf.ByteString getBlockHash() { return blockHash_; } /** - * optional bytes blockHash = 1; + * bytes blockHash = 1; */ public Builder setBlockHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -28624,7 +29361,7 @@ public Builder setBlockHash(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes blockHash = 1; + * bytes blockHash = 1; */ public Builder clearBlockHash() { @@ -28634,12 +29371,12 @@ public Builder clearBlockHash() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -28662,7 +29399,7 @@ 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); + return new req_getBlockByHash(input, extensionRegistry); } }; @@ -28686,7 +29423,7 @@ public interface req_getBlockHeaderByHashOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes blockHash = 1; + * bytes blockHash = 1; */ com.google.protobuf.ByteString getBlockHash(); } @@ -28697,6 +29434,7 @@ 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); @@ -28708,14 +29446,19 @@ private req_getBlockHeaderByHash() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -28725,7 +29468,8 @@ private req_getBlockHeaderByHash( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -28743,6 +29487,7 @@ private req_getBlockHeaderByHash( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -28761,7 +29506,7 @@ private req_getBlockHeaderByHash( public static final int BLOCKHASH_FIELD_NUMBER = 1; private com.google.protobuf.ByteString blockHash_; /** - * optional bytes blockHash = 1; + * bytes blockHash = 1; */ public com.google.protobuf.ByteString getBlockHash() { return blockHash_; @@ -28782,6 +29527,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!blockHash_.isEmpty()) { output.writeBytes(1, blockHash_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -28793,11 +29539,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, blockHash_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -28811,6 +29557,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getBlockHash() .equals(other.getBlockHash()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -28820,7 +29567,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; hash = (53 * hash) + getBlockHash().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -28828,6 +29575,17 @@ public int hashCode() { 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 { @@ -28975,7 +29733,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -28988,12 +29746,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -29010,6 +29768,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockHeaderByHash if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { setBlockHash(other.getBlockHash()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -29038,13 +29797,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString blockHash_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes blockHash = 1; + * bytes blockHash = 1; */ public com.google.protobuf.ByteString getBlockHash() { return blockHash_; } /** - * optional bytes blockHash = 1; + * bytes blockHash = 1; */ public Builder setBlockHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -29056,7 +29815,7 @@ public Builder setBlockHash(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes blockHash = 1; + * bytes blockHash = 1; */ public Builder clearBlockHash() { @@ -29066,12 +29825,12 @@ public Builder clearBlockHash() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -29094,7 +29853,7 @@ 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); + return new req_getBlockHeaderByHash(input, extensionRegistry); } }; @@ -29118,12 +29877,12 @@ public interface req_getTransactionCountOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes address = 1; + * bytes address = 1; */ com.google.protobuf.ByteString getAddress(); /** - * optional uint64 blocknumber = 2; + * uint64 blocknumber = 2; */ long getBlocknumber(); } @@ -29134,6 +29893,7 @@ 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); @@ -29146,14 +29906,19 @@ private req_getTransactionCount() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -29163,7 +29928,8 @@ private req_getTransactionCount( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -29186,6 +29952,7 @@ private req_getTransactionCount( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -29204,7 +29971,7 @@ private req_getTransactionCount( public static final int ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString address_; /** - * optional bytes address = 1; + * bytes address = 1; */ public com.google.protobuf.ByteString getAddress() { return address_; @@ -29213,7 +29980,7 @@ public com.google.protobuf.ByteString getAddress() { public static final int BLOCKNUMBER_FIELD_NUMBER = 2; private long blocknumber_; /** - * optional uint64 blocknumber = 2; + * uint64 blocknumber = 2; */ public long getBlocknumber() { return blocknumber_; @@ -29237,6 +30004,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (blocknumber_ != 0L) { output.writeUInt64(2, blocknumber_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -29252,11 +30020,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, blocknumber_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -29272,6 +30040,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getAddress()); result = result && (getBlocknumber() == other.getBlocknumber()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -29281,7 +30050,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; @@ -29292,6 +30061,17 @@ public int hashCode() { 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 { @@ -29442,7 +30222,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -29455,12 +30235,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -29480,6 +30260,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_getTransactionCount if (other.getBlocknumber() != 0L) { setBlocknumber(other.getBlocknumber()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -29508,13 +30289,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes address = 1; + * bytes address = 1; */ public com.google.protobuf.ByteString getAddress() { return address_; } /** - * optional bytes address = 1; + * bytes address = 1; */ public Builder setAddress(com.google.protobuf.ByteString value) { if (value == null) { @@ -29526,7 +30307,7 @@ public Builder setAddress(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes address = 1; + * bytes address = 1; */ public Builder clearAddress() { @@ -29537,13 +30318,13 @@ public Builder clearAddress() { private long blocknumber_ ; /** - * optional uint64 blocknumber = 2; + * uint64 blocknumber = 2; */ public long getBlocknumber() { return blocknumber_; } /** - * optional uint64 blocknumber = 2; + * uint64 blocknumber = 2; */ public Builder setBlocknumber(long value) { @@ -29552,7 +30333,7 @@ public Builder setBlocknumber(long value) { return this; } /** - * optional uint64 blocknumber = 2; + * uint64 blocknumber = 2; */ public Builder clearBlocknumber() { @@ -29562,12 +30343,12 @@ public Builder clearBlocknumber() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -29590,7 +30371,7 @@ 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); + return new req_getTransactionCount(input, extensionRegistry); } }; @@ -29614,7 +30395,7 @@ public interface rsp_getTransactionCountOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional uint64 txCount = 1; + * uint64 txCount = 1; */ long getTxCount(); } @@ -29625,6 +30406,7 @@ 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); @@ -29636,14 +30418,19 @@ private rsp_getTransactionCount() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -29653,7 +30440,8 @@ private rsp_getTransactionCount( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -29671,6 +30459,7 @@ private rsp_getTransactionCount( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -29689,7 +30478,7 @@ private rsp_getTransactionCount( public static final int TXCOUNT_FIELD_NUMBER = 1; private long txCount_; /** - * optional uint64 txCount = 1; + * uint64 txCount = 1; */ public long getTxCount() { return txCount_; @@ -29710,6 +30499,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (txCount_ != 0L) { output.writeUInt64(1, txCount_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -29721,11 +30511,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, txCount_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -29739,6 +30529,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && (getTxCount() == other.getTxCount()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -29748,7 +30539,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TXCOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTxCount()); @@ -29757,6 +30548,17 @@ public int hashCode() { 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 { @@ -29904,7 +30706,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -29917,12 +30719,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -29939,6 +30741,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getTransactionCount if (other.getTxCount() != 0L) { setTxCount(other.getTxCount()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -29967,13 +30770,13 @@ public Builder mergeFrom( private long txCount_ ; /** - * optional uint64 txCount = 1; + * uint64 txCount = 1; */ public long getTxCount() { return txCount_; } /** - * optional uint64 txCount = 1; + * uint64 txCount = 1; */ public Builder setTxCount(long value) { @@ -29982,7 +30785,7 @@ public Builder setTxCount(long value) { return this; } /** - * optional uint64 txCount = 1; + * uint64 txCount = 1; */ public Builder clearTxCount() { @@ -29992,12 +30795,12 @@ public Builder clearTxCount() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -30020,7 +30823,7 @@ 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); + return new rsp_getTransactionCount(input, extensionRegistry); } }; @@ -30044,7 +30847,7 @@ public interface req_getTransactionCountByHashOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ com.google.protobuf.ByteString getTxHash(); } @@ -30055,6 +30858,7 @@ 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); @@ -30066,14 +30870,19 @@ private req_getTransactionCountByHash() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -30083,7 +30892,8 @@ private req_getTransactionCountByHash( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -30101,6 +30911,7 @@ private req_getTransactionCountByHash( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -30119,7 +30930,7 @@ private req_getTransactionCountByHash( public static final int TXHASH_FIELD_NUMBER = 1; private com.google.protobuf.ByteString txHash_; /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ public com.google.protobuf.ByteString getTxHash() { return txHash_; @@ -30140,6 +30951,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!txHash_.isEmpty()) { output.writeBytes(1, txHash_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -30151,11 +30963,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, txHash_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -30169,6 +30981,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getTxHash() .equals(other.getTxHash()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -30178,7 +30991,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TXHASH_FIELD_NUMBER; hash = (53 * hash) + getTxHash().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -30186,6 +30999,17 @@ public int hashCode() { 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 { @@ -30333,7 +31157,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -30346,12 +31170,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -30368,6 +31192,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_getTransactionCountB if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { setTxHash(other.getTxHash()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -30396,13 +31221,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ public com.google.protobuf.ByteString getTxHash() { return txHash_; } /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ public Builder setTxHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -30414,7 +31239,7 @@ public Builder setTxHash(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ public Builder clearTxHash() { @@ -30424,12 +31249,12 @@ public Builder clearTxHash() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -30452,7 +31277,7 @@ 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); + return new req_getTransactionCountByHash(input, extensionRegistry); } }; @@ -30476,7 +31301,7 @@ public interface rsp_blockNumberOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional uint64 blocknumber = 1; + * uint64 blocknumber = 1; */ long getBlocknumber(); } @@ -30487,6 +31312,7 @@ 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); @@ -30498,14 +31324,19 @@ private rsp_blockNumber() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -30515,7 +31346,8 @@ private rsp_blockNumber( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -30533,6 +31365,7 @@ private rsp_blockNumber( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -30551,7 +31384,7 @@ private rsp_blockNumber( public static final int BLOCKNUMBER_FIELD_NUMBER = 1; private long blocknumber_; /** - * optional uint64 blocknumber = 1; + * uint64 blocknumber = 1; */ public long getBlocknumber() { return blocknumber_; @@ -30572,6 +31405,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (blocknumber_ != 0L) { output.writeUInt64(1, blocknumber_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -30583,11 +31417,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, blocknumber_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -30601,6 +31435,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && (getBlocknumber() == other.getBlocknumber()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -30610,7 +31445,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlocknumber()); @@ -30619,6 +31454,17 @@ public int hashCode() { 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 { @@ -30766,7 +31612,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -30779,12 +31625,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -30801,6 +31647,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_blockNumber other) { if (other.getBlocknumber() != 0L) { setBlocknumber(other.getBlocknumber()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -30829,13 +31676,13 @@ public Builder mergeFrom( private long blocknumber_ ; /** - * optional uint64 blocknumber = 1; + * uint64 blocknumber = 1; */ public long getBlocknumber() { return blocknumber_; } /** - * optional uint64 blocknumber = 1; + * uint64 blocknumber = 1; */ public Builder setBlocknumber(long value) { @@ -30844,7 +31691,7 @@ public Builder setBlocknumber(long value) { return this; } /** - * optional uint64 blocknumber = 1; + * uint64 blocknumber = 1; */ public Builder clearBlocknumber() { @@ -30854,12 +31701,12 @@ public Builder clearBlocknumber() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -30882,7 +31729,7 @@ 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); + return new rsp_blockNumber(input, extensionRegistry); } }; @@ -30906,12 +31753,12 @@ public interface req_getBalanceOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes address = 1; + * bytes address = 1; */ com.google.protobuf.ByteString getAddress(); /** - * optional uint64 blockNumber = 2; + * uint64 blockNumber = 2; */ long getBlockNumber(); } @@ -30922,6 +31769,7 @@ 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); @@ -30934,14 +31782,19 @@ private req_getBalance() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -30951,7 +31804,8 @@ private req_getBalance( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -30974,6 +31828,7 @@ private req_getBalance( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -30992,7 +31847,7 @@ private req_getBalance( public static final int ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString address_; /** - * optional bytes address = 1; + * bytes address = 1; */ public com.google.protobuf.ByteString getAddress() { return address_; @@ -31001,7 +31856,7 @@ public com.google.protobuf.ByteString getAddress() { public static final int BLOCKNUMBER_FIELD_NUMBER = 2; private long blockNumber_; /** - * optional uint64 blockNumber = 2; + * uint64 blockNumber = 2; */ public long getBlockNumber() { return blockNumber_; @@ -31025,6 +31880,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (blockNumber_ != 0L) { output.writeUInt64(2, blockNumber_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -31040,11 +31896,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, blockNumber_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -31060,6 +31916,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getAddress()); result = result && (getBlockNumber() == other.getBlockNumber()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -31069,7 +31926,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; @@ -31080,6 +31937,17 @@ public int hashCode() { 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 { @@ -31230,7 +32098,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -31243,12 +32111,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -31268,6 +32136,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBalance other) { if (other.getBlockNumber() != 0L) { setBlockNumber(other.getBlockNumber()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -31296,13 +32165,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes address = 1; + * bytes address = 1; */ public com.google.protobuf.ByteString getAddress() { return address_; } /** - * optional bytes address = 1; + * bytes address = 1; */ public Builder setAddress(com.google.protobuf.ByteString value) { if (value == null) { @@ -31314,7 +32183,7 @@ public Builder setAddress(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes address = 1; + * bytes address = 1; */ public Builder clearAddress() { @@ -31325,13 +32194,13 @@ public Builder clearAddress() { private long blockNumber_ ; /** - * optional uint64 blockNumber = 2; + * uint64 blockNumber = 2; */ public long getBlockNumber() { return blockNumber_; } /** - * optional uint64 blockNumber = 2; + * uint64 blockNumber = 2; */ public Builder setBlockNumber(long value) { @@ -31340,7 +32209,7 @@ public Builder setBlockNumber(long value) { return this; } /** - * optional uint64 blockNumber = 2; + * uint64 blockNumber = 2; */ public Builder clearBlockNumber() { @@ -31350,12 +32219,12 @@ public Builder clearBlockNumber() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -31378,7 +32247,7 @@ 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); + return new req_getBalance(input, extensionRegistry); } }; @@ -31402,7 +32271,7 @@ public interface rsp_getBalanceOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes balance = 1; + * bytes balance = 1; */ com.google.protobuf.ByteString getBalance(); } @@ -31413,6 +32282,7 @@ 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); @@ -31424,14 +32294,19 @@ private rsp_getBalance() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -31441,7 +32316,8 @@ private rsp_getBalance( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -31459,6 +32335,7 @@ private rsp_getBalance( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -31477,7 +32354,7 @@ private rsp_getBalance( public static final int BALANCE_FIELD_NUMBER = 1; private com.google.protobuf.ByteString balance_; /** - * optional bytes balance = 1; + * bytes balance = 1; */ public com.google.protobuf.ByteString getBalance() { return balance_; @@ -31498,6 +32375,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!balance_.isEmpty()) { output.writeBytes(1, balance_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -31509,11 +32387,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, balance_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -31527,6 +32405,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getBalance() .equals(other.getBalance()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -31536,7 +32415,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BALANCE_FIELD_NUMBER; hash = (53 * hash) + getBalance().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -31544,6 +32423,17 @@ public int hashCode() { 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 { @@ -31691,7 +32581,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -31704,12 +32594,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -31726,6 +32616,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBalance other) { if (other.getBalance() != com.google.protobuf.ByteString.EMPTY) { setBalance(other.getBalance()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -31754,13 +32645,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString balance_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes balance = 1; + * bytes balance = 1; */ public com.google.protobuf.ByteString getBalance() { return balance_; } /** - * optional bytes balance = 1; + * bytes balance = 1; */ public Builder setBalance(com.google.protobuf.ByteString value) { if (value == null) { @@ -31772,7 +32663,7 @@ public Builder setBalance(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes balance = 1; + * bytes balance = 1; */ public Builder clearBalance() { @@ -31782,12 +32673,12 @@ public Builder clearBalance() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -31810,7 +32701,7 @@ 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); + return new rsp_getBalance(input, extensionRegistry); } }; @@ -31834,22 +32725,22 @@ public interface req_getStorageAtOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes address = 1; + * bytes address = 1; */ com.google.protobuf.ByteString getAddress(); /** - * optional string key = 2; + * string key = 2; */ java.lang.String getKey(); /** - * optional string key = 2; + * string key = 2; */ com.google.protobuf.ByteString getKeyBytes(); /** - * optional uint64 blocknumber = 3; + * uint64 blocknumber = 3; */ long getBlocknumber(); } @@ -31860,6 +32751,7 @@ 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); @@ -31873,14 +32765,19 @@ private req_getStorageAt() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -31890,7 +32787,8 @@ private req_getStorageAt( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -31919,6 +32817,7 @@ private req_getStorageAt( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -31937,7 +32836,7 @@ private req_getStorageAt( public static final int ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString address_; /** - * optional bytes address = 1; + * bytes address = 1; */ public com.google.protobuf.ByteString getAddress() { return address_; @@ -31946,7 +32845,7 @@ public com.google.protobuf.ByteString getAddress() { public static final int KEY_FIELD_NUMBER = 2; private volatile java.lang.Object key_; /** - * optional string key = 2; + * string key = 2; */ public java.lang.String getKey() { java.lang.Object ref = key_; @@ -31961,7 +32860,7 @@ public java.lang.String getKey() { } } /** - * optional string key = 2; + * string key = 2; */ public com.google.protobuf.ByteString getKeyBytes() { @@ -31980,7 +32879,7 @@ public java.lang.String getKey() { public static final int BLOCKNUMBER_FIELD_NUMBER = 3; private long blocknumber_; /** - * optional uint64 blocknumber = 3; + * uint64 blocknumber = 3; */ public long getBlocknumber() { return blocknumber_; @@ -32007,6 +32906,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (blocknumber_ != 0L) { output.writeUInt64(3, blocknumber_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -32025,11 +32925,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, blocknumber_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -32047,6 +32947,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getKey()); result = result && (getBlocknumber() == other.getBlocknumber()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -32056,7 +32957,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; @@ -32069,6 +32970,17 @@ public int hashCode() { 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 { @@ -32222,7 +33134,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -32235,12 +33147,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -32264,6 +33176,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_getStorageAt other) if (other.getBlocknumber() != 0L) { setBlocknumber(other.getBlocknumber()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -32292,13 +33205,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes address = 1; + * bytes address = 1; */ public com.google.protobuf.ByteString getAddress() { return address_; } /** - * optional bytes address = 1; + * bytes address = 1; */ public Builder setAddress(com.google.protobuf.ByteString value) { if (value == null) { @@ -32310,7 +33223,7 @@ public Builder setAddress(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes address = 1; + * bytes address = 1; */ public Builder clearAddress() { @@ -32321,7 +33234,7 @@ public Builder clearAddress() { private java.lang.Object key_ = ""; /** - * optional string key = 2; + * string key = 2; */ public java.lang.String getKey() { java.lang.Object ref = key_; @@ -32336,7 +33249,7 @@ public java.lang.String getKey() { } } /** - * optional string key = 2; + * string key = 2; */ public com.google.protobuf.ByteString getKeyBytes() { @@ -32352,7 +33265,7 @@ public java.lang.String getKey() { } } /** - * optional string key = 2; + * string key = 2; */ public Builder setKey( java.lang.String value) { @@ -32365,7 +33278,7 @@ public Builder setKey( return this; } /** - * optional string key = 2; + * string key = 2; */ public Builder clearKey() { @@ -32374,7 +33287,7 @@ public Builder clearKey() { return this; } /** - * optional string key = 2; + * string key = 2; */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { @@ -32390,13 +33303,13 @@ public Builder setKeyBytes( private long blocknumber_ ; /** - * optional uint64 blocknumber = 3; + * uint64 blocknumber = 3; */ public long getBlocknumber() { return blocknumber_; } /** - * optional uint64 blocknumber = 3; + * uint64 blocknumber = 3; */ public Builder setBlocknumber(long value) { @@ -32405,7 +33318,7 @@ public Builder setBlocknumber(long value) { return this; } /** - * optional uint64 blocknumber = 3; + * uint64 blocknumber = 3; */ public Builder clearBlocknumber() { @@ -32415,12 +33328,12 @@ public Builder clearBlocknumber() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -32443,7 +33356,7 @@ 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); + return new req_getStorageAt(input, extensionRegistry); } }; @@ -32467,11 +33380,11 @@ public interface rsp_getStorageAtOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional string storage = 1; + * string storage = 1; */ java.lang.String getStorage(); /** - * optional string storage = 1; + * string storage = 1; */ com.google.protobuf.ByteString getStorageBytes(); @@ -32483,6 +33396,7 @@ 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); @@ -32494,14 +33408,19 @@ private rsp_getStorageAt() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -32511,7 +33430,8 @@ private rsp_getStorageAt( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -32530,6 +33450,7 @@ private rsp_getStorageAt( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -32548,7 +33469,7 @@ private rsp_getStorageAt( public static final int STORAGE_FIELD_NUMBER = 1; private volatile java.lang.Object storage_; /** - * optional string storage = 1; + * string storage = 1; */ public java.lang.String getStorage() { java.lang.Object ref = storage_; @@ -32563,7 +33484,7 @@ public java.lang.String getStorage() { } } /** - * optional string storage = 1; + * string storage = 1; */ public com.google.protobuf.ByteString getStorageBytes() { @@ -32594,6 +33515,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getStorageBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, storage_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -32604,11 +33526,11 @@ public int getSerializedSize() { if (!getStorageBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, storage_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -32622,6 +33544,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getStorage() .equals(other.getStorage()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -32631,7 +33554,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + STORAGE_FIELD_NUMBER; hash = (53 * hash) + getStorage().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -32639,6 +33562,17 @@ public int hashCode() { 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 { @@ -32786,7 +33720,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -32799,12 +33733,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -32822,6 +33756,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getStorageAt other) storage_ = other.storage_; onChanged(); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -32850,7 +33785,7 @@ public Builder mergeFrom( private java.lang.Object storage_ = ""; /** - * optional string storage = 1; + * string storage = 1; */ public java.lang.String getStorage() { java.lang.Object ref = storage_; @@ -32865,7 +33800,7 @@ public java.lang.String getStorage() { } } /** - * optional string storage = 1; + * string storage = 1; */ public com.google.protobuf.ByteString getStorageBytes() { @@ -32881,7 +33816,7 @@ public java.lang.String getStorage() { } } /** - * optional string storage = 1; + * string storage = 1; */ public Builder setStorage( java.lang.String value) { @@ -32894,7 +33829,7 @@ public Builder setStorage( return this; } /** - * optional string storage = 1; + * string storage = 1; */ public Builder clearStorage() { @@ -32903,7 +33838,7 @@ public Builder clearStorage() { return this; } /** - * optional string storage = 1; + * string storage = 1; */ public Builder setStorageBytes( com.google.protobuf.ByteString value) { @@ -32918,12 +33853,12 @@ public Builder setStorageBytes( } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -32946,7 +33881,7 @@ 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); + return new rsp_getStorageAt(input, extensionRegistry); } }; @@ -32970,7 +33905,7 @@ public interface req_getBlockTransactionCountByHashOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes blockHash = 1; + * bytes blockHash = 1; */ com.google.protobuf.ByteString getBlockHash(); } @@ -32981,6 +33916,7 @@ 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); @@ -32992,14 +33928,19 @@ private req_getBlockTransactionCountByHash() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -33009,7 +33950,8 @@ private req_getBlockTransactionCountByHash( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -33027,6 +33969,7 @@ private req_getBlockTransactionCountByHash( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -33045,7 +33988,7 @@ private req_getBlockTransactionCountByHash( public static final int BLOCKHASH_FIELD_NUMBER = 1; private com.google.protobuf.ByteString blockHash_; /** - * optional bytes blockHash = 1; + * bytes blockHash = 1; */ public com.google.protobuf.ByteString getBlockHash() { return blockHash_; @@ -33066,6 +34009,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!blockHash_.isEmpty()) { output.writeBytes(1, blockHash_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -33077,11 +34021,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, blockHash_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -33095,6 +34039,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getBlockHash() .equals(other.getBlockHash()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -33104,7 +34049,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; hash = (53 * hash) + getBlockHash().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -33112,6 +34057,17 @@ public int hashCode() { 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 { @@ -33259,7 +34215,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -33272,12 +34228,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -33294,6 +34250,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockTransactionC if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { setBlockHash(other.getBlockHash()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -33322,13 +34279,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString blockHash_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes blockHash = 1; + * bytes blockHash = 1; */ public com.google.protobuf.ByteString getBlockHash() { return blockHash_; } /** - * optional bytes blockHash = 1; + * bytes blockHash = 1; */ public Builder setBlockHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -33340,7 +34297,7 @@ public Builder setBlockHash(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes blockHash = 1; + * bytes blockHash = 1; */ public Builder clearBlockHash() { @@ -33350,12 +34307,12 @@ public Builder clearBlockHash() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -33378,7 +34335,7 @@ 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); + return new req_getBlockTransactionCountByHash(input, extensionRegistry); } }; @@ -33402,7 +34359,7 @@ public interface rsp_getBlockTransactionCountOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional uint32 txCount = 1; + * uint32 txCount = 1; */ int getTxCount(); } @@ -33413,6 +34370,7 @@ 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); @@ -33424,14 +34382,19 @@ private rsp_getBlockTransactionCount() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -33441,7 +34404,8 @@ private rsp_getBlockTransactionCount( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -33459,6 +34423,7 @@ private rsp_getBlockTransactionCount( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -33477,7 +34442,7 @@ private rsp_getBlockTransactionCount( public static final int TXCOUNT_FIELD_NUMBER = 1; private int txCount_; /** - * optional uint32 txCount = 1; + * uint32 txCount = 1; */ public int getTxCount() { return txCount_; @@ -33498,6 +34463,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (txCount_ != 0) { output.writeUInt32(1, txCount_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -33509,11 +34475,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, txCount_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -33527,6 +34493,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && (getTxCount() == other.getTxCount()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -33536,7 +34503,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TXCOUNT_FIELD_NUMBER; hash = (53 * hash) + getTxCount(); hash = (29 * hash) + unknownFields.hashCode(); @@ -33544,6 +34511,17 @@ public int hashCode() { 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 { @@ -33691,7 +34669,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -33704,12 +34682,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -33726,6 +34704,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlockTransactionC if (other.getTxCount() != 0) { setTxCount(other.getTxCount()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -33754,13 +34733,13 @@ public Builder mergeFrom( private int txCount_ ; /** - * optional uint32 txCount = 1; + * uint32 txCount = 1; */ public int getTxCount() { return txCount_; } /** - * optional uint32 txCount = 1; + * uint32 txCount = 1; */ public Builder setTxCount(int value) { @@ -33769,7 +34748,7 @@ public Builder setTxCount(int value) { return this; } /** - * optional uint32 txCount = 1; + * uint32 txCount = 1; */ public Builder clearTxCount() { @@ -33779,12 +34758,12 @@ public Builder clearTxCount() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -33807,7 +34786,7 @@ 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); + return new rsp_getBlockTransactionCount(input, extensionRegistry); } }; @@ -33831,7 +34810,7 @@ public interface req_getBlockTransactionCountByNumberOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ long getBlockNumber(); } @@ -33842,6 +34821,7 @@ 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); @@ -33853,14 +34833,19 @@ private req_getBlockTransactionCountByNumber() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -33870,7 +34855,8 @@ private req_getBlockTransactionCountByNumber( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -33888,6 +34874,7 @@ private req_getBlockTransactionCountByNumber( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -33906,7 +34893,7 @@ private req_getBlockTransactionCountByNumber( public static final int BLOCKNUMBER_FIELD_NUMBER = 1; private long blockNumber_; /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public long getBlockNumber() { return blockNumber_; @@ -33927,6 +34914,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (blockNumber_ != 0L) { output.writeUInt64(1, blockNumber_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -33938,11 +34926,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, blockNumber_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -33956,6 +34944,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && (getBlockNumber() == other.getBlockNumber()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -33965,7 +34954,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlockNumber()); @@ -33974,6 +34963,17 @@ public int hashCode() { 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 { @@ -34121,7 +35121,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -34134,12 +35134,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -34156,6 +35156,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockTransactionC if (other.getBlockNumber() != 0L) { setBlockNumber(other.getBlockNumber()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -34184,13 +35185,13 @@ public Builder mergeFrom( private long blockNumber_ ; /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public long getBlockNumber() { return blockNumber_; } /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public Builder setBlockNumber(long value) { @@ -34199,7 +35200,7 @@ public Builder setBlockNumber(long value) { return this; } /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public Builder clearBlockNumber() { @@ -34209,12 +35210,12 @@ public Builder clearBlockNumber() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -34237,7 +35238,7 @@ 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); + return new req_getBlockTransactionCountByNumber(input, extensionRegistry); } }; @@ -34261,12 +35262,12 @@ public interface req_getTransactionByBlockHashAndIndexOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes blockHash = 1; + * bytes blockHash = 1; */ com.google.protobuf.ByteString getBlockHash(); /** - * optional uint32 txIndex = 2; + * uint32 txIndex = 2; */ int getTxIndex(); } @@ -34277,6 +35278,7 @@ 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); @@ -34289,14 +35291,19 @@ private req_getTransactionByBlockHashAndIndex() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -34306,7 +35313,8 @@ private req_getTransactionByBlockHashAndIndex( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -34329,6 +35337,7 @@ private req_getTransactionByBlockHashAndIndex( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -34347,7 +35356,7 @@ private req_getTransactionByBlockHashAndIndex( public static final int BLOCKHASH_FIELD_NUMBER = 1; private com.google.protobuf.ByteString blockHash_; /** - * optional bytes blockHash = 1; + * bytes blockHash = 1; */ public com.google.protobuf.ByteString getBlockHash() { return blockHash_; @@ -34356,7 +35365,7 @@ public com.google.protobuf.ByteString getBlockHash() { public static final int TXINDEX_FIELD_NUMBER = 2; private int txIndex_; /** - * optional uint32 txIndex = 2; + * uint32 txIndex = 2; */ public int getTxIndex() { return txIndex_; @@ -34380,6 +35389,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (txIndex_ != 0) { output.writeUInt32(2, txIndex_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -34395,11 +35405,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, txIndex_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -34415,6 +35425,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getBlockHash()); result = result && (getTxIndex() == other.getTxIndex()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -34424,7 +35435,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; hash = (53 * hash) + getBlockHash().hashCode(); hash = (37 * hash) + TXINDEX_FIELD_NUMBER; @@ -34434,6 +35445,17 @@ public int hashCode() { 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 { @@ -34584,7 +35606,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -34597,12 +35619,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -34622,6 +35644,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_getTransactionByBloc if (other.getTxIndex() != 0) { setTxIndex(other.getTxIndex()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -34650,13 +35673,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString blockHash_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes blockHash = 1; + * bytes blockHash = 1; */ public com.google.protobuf.ByteString getBlockHash() { return blockHash_; } /** - * optional bytes blockHash = 1; + * bytes blockHash = 1; */ public Builder setBlockHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -34668,7 +35691,7 @@ public Builder setBlockHash(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes blockHash = 1; + * bytes blockHash = 1; */ public Builder clearBlockHash() { @@ -34679,13 +35702,13 @@ public Builder clearBlockHash() { private int txIndex_ ; /** - * optional uint32 txIndex = 2; + * uint32 txIndex = 2; */ public int getTxIndex() { return txIndex_; } /** - * optional uint32 txIndex = 2; + * uint32 txIndex = 2; */ public Builder setTxIndex(int value) { @@ -34694,7 +35717,7 @@ public Builder setTxIndex(int value) { return this; } /** - * optional uint32 txIndex = 2; + * uint32 txIndex = 2; */ public Builder clearTxIndex() { @@ -34704,12 +35727,12 @@ public Builder clearTxIndex() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -34732,7 +35755,7 @@ 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); + return new req_getTransactionByBlockHashAndIndex(input, extensionRegistry); } }; @@ -34756,12 +35779,12 @@ public interface req_getTransactionByBlockNumberAndIndexOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ long getBlockNumber(); /** - * optional uint32 txIndex = 2; + * uint32 txIndex = 2; */ int getTxIndex(); } @@ -34772,6 +35795,7 @@ 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); @@ -34784,14 +35808,19 @@ private req_getTransactionByBlockNumberAndIndex() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -34801,7 +35830,8 @@ private req_getTransactionByBlockNumberAndIndex( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -34824,6 +35854,7 @@ private req_getTransactionByBlockNumberAndIndex( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -34842,7 +35873,7 @@ private req_getTransactionByBlockNumberAndIndex( public static final int BLOCKNUMBER_FIELD_NUMBER = 1; private long blockNumber_; /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public long getBlockNumber() { return blockNumber_; @@ -34851,7 +35882,7 @@ public long getBlockNumber() { public static final int TXINDEX_FIELD_NUMBER = 2; private int txIndex_; /** - * optional uint32 txIndex = 2; + * uint32 txIndex = 2; */ public int getTxIndex() { return txIndex_; @@ -34875,6 +35906,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (txIndex_ != 0) { output.writeUInt32(2, txIndex_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -34890,11 +35922,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, txIndex_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -34910,6 +35942,7 @@ public boolean equals(final java.lang.Object obj) { == other.getBlockNumber()); result = result && (getTxIndex() == other.getTxIndex()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -34919,7 +35952,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlockNumber()); @@ -34930,6 +35963,17 @@ public int hashCode() { 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 { @@ -35080,7 +36124,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -35093,12 +36137,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -35118,6 +36162,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_getTransactionByBloc if (other.getTxIndex() != 0) { setTxIndex(other.getTxIndex()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -35146,13 +36191,13 @@ public Builder mergeFrom( private long blockNumber_ ; /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public long getBlockNumber() { return blockNumber_; } /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public Builder setBlockNumber(long value) { @@ -35161,7 +36206,7 @@ public Builder setBlockNumber(long value) { return this; } /** - * optional uint64 blockNumber = 1; + * uint64 blockNumber = 1; */ public Builder clearBlockNumber() { @@ -35172,13 +36217,13 @@ public Builder clearBlockNumber() { private int txIndex_ ; /** - * optional uint32 txIndex = 2; + * uint32 txIndex = 2; */ public int getTxIndex() { return txIndex_; } /** - * optional uint32 txIndex = 2; + * uint32 txIndex = 2; */ public Builder setTxIndex(int value) { @@ -35187,7 +36232,7 @@ public Builder setTxIndex(int value) { return this; } /** - * optional uint32 txIndex = 2; + * uint32 txIndex = 2; */ public Builder clearTxIndex() { @@ -35197,12 +36242,12 @@ public Builder clearTxIndex() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -35225,7 +36270,7 @@ 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); + return new req_getTransactionByBlockNumberAndIndex(input, extensionRegistry); } }; @@ -35249,7 +36294,7 @@ public interface req_getTransactionReceiptOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ com.google.protobuf.ByteString getTxHash(); } @@ -35260,6 +36305,7 @@ 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); @@ -35271,14 +36317,19 @@ private req_getTransactionReceipt() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -35288,7 +36339,8 @@ private req_getTransactionReceipt( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -35306,6 +36358,7 @@ private req_getTransactionReceipt( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -35324,7 +36377,7 @@ private req_getTransactionReceipt( public static final int TXHASH_FIELD_NUMBER = 1; private com.google.protobuf.ByteString txHash_; /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ public com.google.protobuf.ByteString getTxHash() { return txHash_; @@ -35345,6 +36398,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!txHash_.isEmpty()) { output.writeBytes(1, txHash_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -35356,11 +36410,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, txHash_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -35374,6 +36428,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getTxHash() .equals(other.getTxHash()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -35383,7 +36438,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TXHASH_FIELD_NUMBER; hash = (53 * hash) + getTxHash().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -35391,6 +36446,17 @@ public int hashCode() { 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 { @@ -35538,7 +36604,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -35551,12 +36617,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -35573,6 +36639,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_getTransactionReceip if (other.getTxHash() != com.google.protobuf.ByteString.EMPTY) { setTxHash(other.getTxHash()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -35601,13 +36668,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ public com.google.protobuf.ByteString getTxHash() { return txHash_; } /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ public Builder setTxHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -35619,7 +36686,7 @@ public Builder setTxHash(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes txHash = 1; + * bytes txHash = 1; */ public Builder clearTxHash() { @@ -35629,12 +36696,12 @@ public Builder clearTxHash() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -35657,7 +36724,7 @@ 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); + return new req_getTransactionReceipt(input, extensionRegistry); } }; @@ -35681,47 +36748,47 @@ public interface rsp_getTransactionReceiptOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional uint32 txIndex = 1; + * uint32 txIndex = 1; */ int getTxIndex(); /** - * optional uint64 blockNumber = 2; + * uint64 blockNumber = 2; */ long getBlockNumber(); /** - * optional uint64 nrgConsumed = 3; + * uint64 nrgConsumed = 3; */ long getNrgConsumed(); /** - * optional uint64 cumulativeNrgUsed = 4; + * uint64 cumulativeNrgUsed = 4; */ long getCumulativeNrgUsed(); /** - * optional bytes blockHash = 5; + * bytes blockHash = 5; */ com.google.protobuf.ByteString getBlockHash(); /** - * optional bytes txHash = 6; + * bytes txHash = 6; */ com.google.protobuf.ByteString getTxHash(); /** - * optional bytes from = 7; + * bytes from = 7; */ com.google.protobuf.ByteString getFrom(); /** - * optional bytes to = 8; + * bytes to = 8; */ com.google.protobuf.ByteString getTo(); /** - * optional bytes contractAddress = 9; + * bytes contractAddress = 9; */ com.google.protobuf.ByteString getContractAddress(); @@ -35756,6 +36823,7 @@ 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); @@ -35776,14 +36844,19 @@ private rsp_getTransactionReceipt() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -35793,7 +36866,8 @@ private rsp_getTransactionReceipt( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -35863,6 +36937,7 @@ private rsp_getTransactionReceipt( if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { logs_ = java.util.Collections.unmodifiableList(logs_); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -35882,7 +36957,7 @@ private rsp_getTransactionReceipt( public static final int TXINDEX_FIELD_NUMBER = 1; private int txIndex_; /** - * optional uint32 txIndex = 1; + * uint32 txIndex = 1; */ public int getTxIndex() { return txIndex_; @@ -35891,7 +36966,7 @@ public int getTxIndex() { public static final int BLOCKNUMBER_FIELD_NUMBER = 2; private long blockNumber_; /** - * optional uint64 blockNumber = 2; + * uint64 blockNumber = 2; */ public long getBlockNumber() { return blockNumber_; @@ -35900,7 +36975,7 @@ public long getBlockNumber() { public static final int NRGCONSUMED_FIELD_NUMBER = 3; private long nrgConsumed_; /** - * optional uint64 nrgConsumed = 3; + * uint64 nrgConsumed = 3; */ public long getNrgConsumed() { return nrgConsumed_; @@ -35909,7 +36984,7 @@ public long getNrgConsumed() { public static final int CUMULATIVENRGUSED_FIELD_NUMBER = 4; private long cumulativeNrgUsed_; /** - * optional uint64 cumulativeNrgUsed = 4; + * uint64 cumulativeNrgUsed = 4; */ public long getCumulativeNrgUsed() { return cumulativeNrgUsed_; @@ -35918,7 +36993,7 @@ public long getCumulativeNrgUsed() { public static final int BLOCKHASH_FIELD_NUMBER = 5; private com.google.protobuf.ByteString blockHash_; /** - * optional bytes blockHash = 5; + * bytes blockHash = 5; */ public com.google.protobuf.ByteString getBlockHash() { return blockHash_; @@ -35927,7 +37002,7 @@ public com.google.protobuf.ByteString getBlockHash() { public static final int TXHASH_FIELD_NUMBER = 6; private com.google.protobuf.ByteString txHash_; /** - * optional bytes txHash = 6; + * bytes txHash = 6; */ public com.google.protobuf.ByteString getTxHash() { return txHash_; @@ -35936,7 +37011,7 @@ public com.google.protobuf.ByteString getTxHash() { public static final int FROM_FIELD_NUMBER = 7; private com.google.protobuf.ByteString from_; /** - * optional bytes from = 7; + * bytes from = 7; */ public com.google.protobuf.ByteString getFrom() { return from_; @@ -35945,7 +37020,7 @@ public com.google.protobuf.ByteString getFrom() { public static final int TO_FIELD_NUMBER = 8; private com.google.protobuf.ByteString to_; /** - * optional bytes to = 8; + * bytes to = 8; */ public com.google.protobuf.ByteString getTo() { return to_; @@ -35954,7 +37029,7 @@ public com.google.protobuf.ByteString getTo() { public static final int CONTRACTADDRESS_FIELD_NUMBER = 9; private com.google.protobuf.ByteString contractAddress_; /** - * optional bytes contractAddress = 9; + * bytes contractAddress = 9; */ public com.google.protobuf.ByteString getContractAddress() { return contractAddress_; @@ -36037,6 +37112,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < logs_.size(); i++) { output.writeMessage(10, logs_.get(i)); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -36084,11 +37160,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, logs_.get(i)); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -36120,6 +37196,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getContractAddress()); result = result && getLogsList() .equals(other.getLogsList()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -36129,7 +37206,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TXINDEX_FIELD_NUMBER; hash = (53 * hash) + getTxIndex(); hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER; @@ -36160,6 +37237,17 @@ public int hashCode() { 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 { @@ -36350,7 +37438,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -36363,12 +37451,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -36435,6 +37523,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getTransactionReceip } } } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -36464,13 +37553,13 @@ public Builder mergeFrom( private int txIndex_ ; /** - * optional uint32 txIndex = 1; + * uint32 txIndex = 1; */ public int getTxIndex() { return txIndex_; } /** - * optional uint32 txIndex = 1; + * uint32 txIndex = 1; */ public Builder setTxIndex(int value) { @@ -36479,7 +37568,7 @@ public Builder setTxIndex(int value) { return this; } /** - * optional uint32 txIndex = 1; + * uint32 txIndex = 1; */ public Builder clearTxIndex() { @@ -36490,13 +37579,13 @@ public Builder clearTxIndex() { private long blockNumber_ ; /** - * optional uint64 blockNumber = 2; + * uint64 blockNumber = 2; */ public long getBlockNumber() { return blockNumber_; } /** - * optional uint64 blockNumber = 2; + * uint64 blockNumber = 2; */ public Builder setBlockNumber(long value) { @@ -36505,7 +37594,7 @@ public Builder setBlockNumber(long value) { return this; } /** - * optional uint64 blockNumber = 2; + * uint64 blockNumber = 2; */ public Builder clearBlockNumber() { @@ -36516,13 +37605,13 @@ public Builder clearBlockNumber() { private long nrgConsumed_ ; /** - * optional uint64 nrgConsumed = 3; + * uint64 nrgConsumed = 3; */ public long getNrgConsumed() { return nrgConsumed_; } /** - * optional uint64 nrgConsumed = 3; + * uint64 nrgConsumed = 3; */ public Builder setNrgConsumed(long value) { @@ -36531,7 +37620,7 @@ public Builder setNrgConsumed(long value) { return this; } /** - * optional uint64 nrgConsumed = 3; + * uint64 nrgConsumed = 3; */ public Builder clearNrgConsumed() { @@ -36542,13 +37631,13 @@ public Builder clearNrgConsumed() { private long cumulativeNrgUsed_ ; /** - * optional uint64 cumulativeNrgUsed = 4; + * uint64 cumulativeNrgUsed = 4; */ public long getCumulativeNrgUsed() { return cumulativeNrgUsed_; } /** - * optional uint64 cumulativeNrgUsed = 4; + * uint64 cumulativeNrgUsed = 4; */ public Builder setCumulativeNrgUsed(long value) { @@ -36557,7 +37646,7 @@ public Builder setCumulativeNrgUsed(long value) { return this; } /** - * optional uint64 cumulativeNrgUsed = 4; + * uint64 cumulativeNrgUsed = 4; */ public Builder clearCumulativeNrgUsed() { @@ -36568,13 +37657,13 @@ public Builder clearCumulativeNrgUsed() { private com.google.protobuf.ByteString blockHash_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes blockHash = 5; + * bytes blockHash = 5; */ public com.google.protobuf.ByteString getBlockHash() { return blockHash_; } /** - * optional bytes blockHash = 5; + * bytes blockHash = 5; */ public Builder setBlockHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -36586,7 +37675,7 @@ public Builder setBlockHash(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes blockHash = 5; + * bytes blockHash = 5; */ public Builder clearBlockHash() { @@ -36597,13 +37686,13 @@ public Builder clearBlockHash() { private com.google.protobuf.ByteString txHash_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes txHash = 6; + * bytes txHash = 6; */ public com.google.protobuf.ByteString getTxHash() { return txHash_; } /** - * optional bytes txHash = 6; + * bytes txHash = 6; */ public Builder setTxHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -36615,7 +37704,7 @@ public Builder setTxHash(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes txHash = 6; + * bytes txHash = 6; */ public Builder clearTxHash() { @@ -36626,13 +37715,13 @@ public Builder clearTxHash() { private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes from = 7; + * bytes from = 7; */ public com.google.protobuf.ByteString getFrom() { return from_; } /** - * optional bytes from = 7; + * bytes from = 7; */ public Builder setFrom(com.google.protobuf.ByteString value) { if (value == null) { @@ -36644,7 +37733,7 @@ public Builder setFrom(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes from = 7; + * bytes from = 7; */ public Builder clearFrom() { @@ -36655,13 +37744,13 @@ public Builder clearFrom() { private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes to = 8; + * bytes to = 8; */ public com.google.protobuf.ByteString getTo() { return to_; } /** - * optional bytes to = 8; + * bytes to = 8; */ public Builder setTo(com.google.protobuf.ByteString value) { if (value == null) { @@ -36673,7 +37762,7 @@ public Builder setTo(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes to = 8; + * bytes to = 8; */ public Builder clearTo() { @@ -36684,13 +37773,13 @@ public Builder clearTo() { private com.google.protobuf.ByteString contractAddress_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes contractAddress = 9; + * bytes contractAddress = 9; */ public com.google.protobuf.ByteString getContractAddress() { return contractAddress_; } /** - * optional bytes contractAddress = 9; + * bytes contractAddress = 9; */ public Builder setContractAddress(com.google.protobuf.ByteString value) { if (value == null) { @@ -36702,7 +37791,7 @@ public Builder setContractAddress(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes contractAddress = 9; + * bytes contractAddress = 9; */ public Builder clearContractAddress() { @@ -36952,12 +38041,12 @@ public org.aion.api.server.pb.Message.t_LgEle.Builder addLogsBuilder( } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -36980,7 +38069,7 @@ 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); + return new rsp_getTransactionReceipt(input, extensionRegistry); } }; @@ -37004,12 +38093,12 @@ public interface req_getUncleByBlockHashAndIndexOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes blockHash = 1; + * bytes blockHash = 1; */ com.google.protobuf.ByteString getBlockHash(); /** - * optional uint32 index = 2; + * uint32 index = 2; */ int getIndex(); } @@ -37020,6 +38109,7 @@ 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); @@ -37032,14 +38122,19 @@ private req_getUncleByBlockHashAndIndex() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -37049,7 +38144,8 @@ private req_getUncleByBlockHashAndIndex( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -37072,6 +38168,7 @@ private req_getUncleByBlockHashAndIndex( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -37090,7 +38187,7 @@ private req_getUncleByBlockHashAndIndex( public static final int BLOCKHASH_FIELD_NUMBER = 1; private com.google.protobuf.ByteString blockHash_; /** - * optional bytes blockHash = 1; + * bytes blockHash = 1; */ public com.google.protobuf.ByteString getBlockHash() { return blockHash_; @@ -37099,7 +38196,7 @@ public com.google.protobuf.ByteString getBlockHash() { public static final int INDEX_FIELD_NUMBER = 2; private int index_; /** - * optional uint32 index = 2; + * uint32 index = 2; */ public int getIndex() { return index_; @@ -37123,6 +38220,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (index_ != 0) { output.writeUInt32(2, index_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -37138,11 +38236,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, index_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -37158,6 +38256,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getBlockHash()); result = result && (getIndex() == other.getIndex()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -37167,7 +38266,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BLOCKHASH_FIELD_NUMBER; hash = (53 * hash) + getBlockHash().hashCode(); hash = (37 * hash) + INDEX_FIELD_NUMBER; @@ -37177,6 +38276,17 @@ public int hashCode() { 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 { @@ -37327,7 +38437,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -37340,12 +38450,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -37365,6 +38475,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_getUncleByBlockHashA if (other.getIndex() != 0) { setIndex(other.getIndex()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -37393,13 +38504,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString blockHash_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes blockHash = 1; + * bytes blockHash = 1; */ public com.google.protobuf.ByteString getBlockHash() { return blockHash_; } /** - * optional bytes blockHash = 1; + * bytes blockHash = 1; */ public Builder setBlockHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -37411,7 +38522,7 @@ public Builder setBlockHash(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes blockHash = 1; + * bytes blockHash = 1; */ public Builder clearBlockHash() { @@ -37422,13 +38533,13 @@ public Builder clearBlockHash() { private int index_ ; /** - * optional uint32 index = 2; + * uint32 index = 2; */ public int getIndex() { return index_; } /** - * optional uint32 index = 2; + * uint32 index = 2; */ public Builder setIndex(int value) { @@ -37437,7 +38548,7 @@ public Builder setIndex(int value) { return this; } /** - * optional uint32 index = 2; + * uint32 index = 2; */ public Builder clearIndex() { @@ -37447,12 +38558,12 @@ public Builder clearIndex() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -37475,7 +38586,7 @@ 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); + return new req_getUncleByBlockHashAndIndex(input, extensionRegistry); } }; @@ -37524,6 +38635,7 @@ 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); @@ -37535,14 +38647,19 @@ private rsp_getCompilers() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -37552,7 +38669,8 @@ private rsp_getCompilers( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -37577,6 +38695,7 @@ private rsp_getCompilers( if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { compiler_ = compiler_.getUnmodifiableView(); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -37636,6 +38755,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < compiler_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, compiler_.getRaw(i)); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -37651,11 +38771,11 @@ public int getSerializedSize() { size += dataSize; size += 1 * getCompilerList().size(); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -37669,6 +38789,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getCompilerList() .equals(other.getCompilerList()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -37678,7 +38799,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); if (getCompilerCount() > 0) { hash = (37 * hash) + COMPILER_FIELD_NUMBER; hash = (53 * hash) + getCompilerList().hashCode(); @@ -37688,6 +38809,17 @@ public int hashCode() { 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 { @@ -37840,7 +38972,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -37853,12 +38985,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -37882,6 +39014,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getCompilers other) } onChanged(); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -38004,12 +39137,12 @@ public Builder addCompilerBytes( } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -38032,7 +39165,7 @@ 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); + return new rsp_getCompilers(input, extensionRegistry); } }; @@ -38056,11 +39189,11 @@ public interface req_compileSolidityOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional string source = 1; + * string source = 1; */ java.lang.String getSource(); /** - * optional string source = 1; + * string source = 1; */ com.google.protobuf.ByteString getSourceBytes(); @@ -38072,6 +39205,7 @@ 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); @@ -38083,14 +39217,19 @@ private req_compileSolidity() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -38100,7 +39239,8 @@ private req_compileSolidity( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -38119,6 +39259,7 @@ private req_compileSolidity( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -38137,7 +39278,7 @@ private req_compileSolidity( public static final int SOURCE_FIELD_NUMBER = 1; private volatile java.lang.Object source_; /** - * optional string source = 1; + * string source = 1; */ public java.lang.String getSource() { java.lang.Object ref = source_; @@ -38152,7 +39293,7 @@ public java.lang.String getSource() { } } /** - * optional string source = 1; + * string source = 1; */ public com.google.protobuf.ByteString getSourceBytes() { @@ -38183,6 +39324,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getSourceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -38193,11 +39335,11 @@ public int getSerializedSize() { if (!getSourceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, source_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -38211,6 +39353,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getSource() .equals(other.getSource()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -38220,7 +39363,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -38228,6 +39371,17 @@ public int hashCode() { 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 { @@ -38375,7 +39529,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -38388,12 +39542,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -38411,6 +39565,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_compileSolidity othe source_ = other.source_; onChanged(); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -38439,7 +39594,7 @@ public Builder mergeFrom( private java.lang.Object source_ = ""; /** - * optional string source = 1; + * string source = 1; */ public java.lang.String getSource() { java.lang.Object ref = source_; @@ -38454,7 +39609,7 @@ public java.lang.String getSource() { } } /** - * optional string source = 1; + * string source = 1; */ public com.google.protobuf.ByteString getSourceBytes() { @@ -38470,7 +39625,7 @@ public java.lang.String getSource() { } } /** - * optional string source = 1; + * string source = 1; */ public Builder setSource( java.lang.String value) { @@ -38483,7 +39638,7 @@ public Builder setSource( return this; } /** - * optional string source = 1; + * string source = 1; */ public Builder clearSource() { @@ -38492,7 +39647,7 @@ public Builder clearSource() { return this; } /** - * optional string source = 1; + * string source = 1; */ public Builder setSourceBytes( com.google.protobuf.ByteString value) { @@ -38507,12 +39662,12 @@ public Builder setSourceBytes( } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -38535,7 +39690,7 @@ 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); + return new req_compileSolidity(input, extensionRegistry); } }; @@ -38559,25 +39714,25 @@ public interface rsp_compileSolidityOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional string code = 1; + * string code = 1; */ java.lang.String getCode(); /** - * optional string code = 1; + * string code = 1; */ com.google.protobuf.ByteString getCodeBytes(); /** - * optional .org.aion.api.server.pb.t_Contract info = 2; + * .org.aion.api.server.pb.t_Contract info = 2; */ boolean hasInfo(); /** - * optional .org.aion.api.server.pb.t_Contract info = 2; + * .org.aion.api.server.pb.t_Contract info = 2; */ org.aion.api.server.pb.Message.t_Contract getInfo(); /** - * optional .org.aion.api.server.pb.t_Contract info = 2; + * .org.aion.api.server.pb.t_Contract info = 2; */ org.aion.api.server.pb.Message.t_ContractOrBuilder getInfoOrBuilder(); } @@ -38588,6 +39743,7 @@ 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); @@ -38599,14 +39755,19 @@ private rsp_compileSolidity() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -38616,7 +39777,8 @@ private rsp_compileSolidity( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -38648,6 +39810,7 @@ private rsp_compileSolidity( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -38666,7 +39829,7 @@ private rsp_compileSolidity( public static final int CODE_FIELD_NUMBER = 1; private volatile java.lang.Object code_; /** - * optional string code = 1; + * string code = 1; */ public java.lang.String getCode() { java.lang.Object ref = code_; @@ -38681,7 +39844,7 @@ public java.lang.String getCode() { } } /** - * optional string code = 1; + * string code = 1; */ public com.google.protobuf.ByteString getCodeBytes() { @@ -38700,19 +39863,19 @@ public java.lang.String getCode() { public static final int INFO_FIELD_NUMBER = 2; private org.aion.api.server.pb.Message.t_Contract info_; /** - * optional .org.aion.api.server.pb.t_Contract info = 2; + * .org.aion.api.server.pb.t_Contract info = 2; */ public boolean hasInfo() { return info_ != null; } /** - * optional .org.aion.api.server.pb.t_Contract info = 2; + * .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_; } /** - * optional .org.aion.api.server.pb.t_Contract info = 2; + * .org.aion.api.server.pb.t_Contract info = 2; */ public org.aion.api.server.pb.Message.t_ContractOrBuilder getInfoOrBuilder() { return getInfo(); @@ -38736,6 +39899,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (info_ != null) { output.writeMessage(2, getInfo()); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -38750,11 +39914,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getInfo()); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -38773,6 +39937,7 @@ public boolean equals(final java.lang.Object obj) { result = result && getInfo() .equals(other.getInfo()); } + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -38782,7 +39947,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + getCode().hashCode(); if (hasInfo()) { @@ -38794,6 +39959,17 @@ public int hashCode() { 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 { @@ -38952,7 +40128,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -38965,12 +40141,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -38991,6 +40167,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_compileSolidity othe if (other.hasInfo()) { mergeInfo(other.getInfo()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -39019,7 +40196,7 @@ public Builder mergeFrom( private java.lang.Object code_ = ""; /** - * optional string code = 1; + * string code = 1; */ public java.lang.String getCode() { java.lang.Object ref = code_; @@ -39034,7 +40211,7 @@ public java.lang.String getCode() { } } /** - * optional string code = 1; + * string code = 1; */ public com.google.protobuf.ByteString getCodeBytes() { @@ -39050,7 +40227,7 @@ public java.lang.String getCode() { } } /** - * optional string code = 1; + * string code = 1; */ public Builder setCode( java.lang.String value) { @@ -39063,7 +40240,7 @@ public Builder setCode( return this; } /** - * optional string code = 1; + * string code = 1; */ public Builder clearCode() { @@ -39072,7 +40249,7 @@ public Builder clearCode() { return this; } /** - * optional string code = 1; + * string code = 1; */ public Builder setCodeBytes( com.google.protobuf.ByteString value) { @@ -39090,13 +40267,13 @@ public Builder setCodeBytes( 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_; /** - * optional .org.aion.api.server.pb.t_Contract info = 2; + * .org.aion.api.server.pb.t_Contract info = 2; */ public boolean hasInfo() { return infoBuilder_ != null || info_ != null; } /** - * optional .org.aion.api.server.pb.t_Contract info = 2; + * .org.aion.api.server.pb.t_Contract info = 2; */ public org.aion.api.server.pb.Message.t_Contract getInfo() { if (infoBuilder_ == null) { @@ -39106,7 +40283,7 @@ public org.aion.api.server.pb.Message.t_Contract getInfo() { } } /** - * optional .org.aion.api.server.pb.t_Contract info = 2; + * .org.aion.api.server.pb.t_Contract info = 2; */ public Builder setInfo(org.aion.api.server.pb.Message.t_Contract value) { if (infoBuilder_ == null) { @@ -39122,7 +40299,7 @@ public Builder setInfo(org.aion.api.server.pb.Message.t_Contract value) { return this; } /** - * optional .org.aion.api.server.pb.t_Contract info = 2; + * .org.aion.api.server.pb.t_Contract info = 2; */ public Builder setInfo( org.aion.api.server.pb.Message.t_Contract.Builder builderForValue) { @@ -39136,7 +40313,7 @@ public Builder setInfo( return this; } /** - * optional .org.aion.api.server.pb.t_Contract info = 2; + * .org.aion.api.server.pb.t_Contract info = 2; */ public Builder mergeInfo(org.aion.api.server.pb.Message.t_Contract value) { if (infoBuilder_ == null) { @@ -39154,7 +40331,7 @@ public Builder mergeInfo(org.aion.api.server.pb.Message.t_Contract value) { return this; } /** - * optional .org.aion.api.server.pb.t_Contract info = 2; + * .org.aion.api.server.pb.t_Contract info = 2; */ public Builder clearInfo() { if (infoBuilder_ == null) { @@ -39168,7 +40345,7 @@ public Builder clearInfo() { return this; } /** - * optional .org.aion.api.server.pb.t_Contract info = 2; + * .org.aion.api.server.pb.t_Contract info = 2; */ public org.aion.api.server.pb.Message.t_Contract.Builder getInfoBuilder() { @@ -39176,7 +40353,7 @@ public org.aion.api.server.pb.Message.t_Contract.Builder getInfoBuilder() { return getInfoFieldBuilder().getBuilder(); } /** - * optional .org.aion.api.server.pb.t_Contract info = 2; + * .org.aion.api.server.pb.t_Contract info = 2; */ public org.aion.api.server.pb.Message.t_ContractOrBuilder getInfoOrBuilder() { if (infoBuilder_ != null) { @@ -39187,7 +40364,7 @@ public org.aion.api.server.pb.Message.t_ContractOrBuilder getInfoOrBuilder() { } } /** - * optional .org.aion.api.server.pb.t_Contract info = 2; + * .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> @@ -39204,12 +40381,12 @@ public org.aion.api.server.pb.Message.t_ContractOrBuilder getInfoOrBuilder() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -39232,7 +40409,7 @@ 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); + return new rsp_compileSolidity(input, extensionRegistry); } }; @@ -39281,6 +40458,7 @@ 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); @@ -39292,14 +40470,19 @@ private rsp_getWork() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -39309,7 +40492,8 @@ private rsp_getWork( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -39334,6 +40518,7 @@ private rsp_getWork( if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { work_ = work_.getUnmodifiableView(); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -39393,6 +40578,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < work_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, work_.getRaw(i)); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -39408,11 +40594,11 @@ public int getSerializedSize() { size += dataSize; size += 1 * getWorkList().size(); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -39426,6 +40612,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getWorkList() .equals(other.getWorkList()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -39435,7 +40622,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); if (getWorkCount() > 0) { hash = (37 * hash) + WORK_FIELD_NUMBER; hash = (53 * hash) + getWorkList().hashCode(); @@ -39445,6 +40632,17 @@ public int hashCode() { 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 { @@ -39597,7 +40795,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -39610,12 +40808,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -39639,6 +40837,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getWork other) { } onChanged(); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -39761,12 +40960,12 @@ public Builder addWorkBytes( } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -39789,7 +40988,7 @@ 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); + return new rsp_getWork(input, extensionRegistry); } }; @@ -39813,17 +41012,17 @@ public interface req_submitWorkOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes nonce = 1; + * bytes nonce = 1; */ com.google.protobuf.ByteString getNonce(); /** - * optional bytes solution = 2; + * bytes solution = 2; */ com.google.protobuf.ByteString getSolution(); /** - * optional bytes digest = 3; + * bytes digest = 3; */ com.google.protobuf.ByteString getDigest(); } @@ -39834,6 +41033,7 @@ 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); @@ -39847,14 +41047,19 @@ private req_submitWork() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -39864,7 +41069,8 @@ private req_submitWork( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -39892,6 +41098,7 @@ private req_submitWork( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -39910,7 +41117,7 @@ private req_submitWork( public static final int NONCE_FIELD_NUMBER = 1; private com.google.protobuf.ByteString nonce_; /** - * optional bytes nonce = 1; + * bytes nonce = 1; */ public com.google.protobuf.ByteString getNonce() { return nonce_; @@ -39919,7 +41126,7 @@ public com.google.protobuf.ByteString getNonce() { public static final int SOLUTION_FIELD_NUMBER = 2; private com.google.protobuf.ByteString solution_; /** - * optional bytes solution = 2; + * bytes solution = 2; */ public com.google.protobuf.ByteString getSolution() { return solution_; @@ -39928,7 +41135,7 @@ public com.google.protobuf.ByteString getSolution() { public static final int DIGEST_FIELD_NUMBER = 3; private com.google.protobuf.ByteString digest_; /** - * optional bytes digest = 3; + * bytes digest = 3; */ public com.google.protobuf.ByteString getDigest() { return digest_; @@ -39955,6 +41162,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!digest_.isEmpty()) { output.writeBytes(3, digest_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -39974,11 +41182,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, digest_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -39996,6 +41204,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getSolution()); result = result && getDigest() .equals(other.getDigest()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -40005,7 +41214,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NONCE_FIELD_NUMBER; hash = (53 * hash) + getNonce().hashCode(); hash = (37 * hash) + SOLUTION_FIELD_NUMBER; @@ -40017,6 +41226,17 @@ public int hashCode() { 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 { @@ -40170,7 +41390,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -40183,12 +41403,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -40211,6 +41431,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_submitWork other) { if (other.getDigest() != com.google.protobuf.ByteString.EMPTY) { setDigest(other.getDigest()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -40239,13 +41460,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes nonce = 1; + * bytes nonce = 1; */ public com.google.protobuf.ByteString getNonce() { return nonce_; } /** - * optional bytes nonce = 1; + * bytes nonce = 1; */ public Builder setNonce(com.google.protobuf.ByteString value) { if (value == null) { @@ -40257,7 +41478,7 @@ public Builder setNonce(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes nonce = 1; + * bytes nonce = 1; */ public Builder clearNonce() { @@ -40268,13 +41489,13 @@ public Builder clearNonce() { private com.google.protobuf.ByteString solution_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes solution = 2; + * bytes solution = 2; */ public com.google.protobuf.ByteString getSolution() { return solution_; } /** - * optional bytes solution = 2; + * bytes solution = 2; */ public Builder setSolution(com.google.protobuf.ByteString value) { if (value == null) { @@ -40286,7 +41507,7 @@ public Builder setSolution(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes solution = 2; + * bytes solution = 2; */ public Builder clearSolution() { @@ -40297,13 +41518,13 @@ public Builder clearSolution() { private com.google.protobuf.ByteString digest_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes digest = 3; + * bytes digest = 3; */ public com.google.protobuf.ByteString getDigest() { return digest_; } /** - * optional bytes digest = 3; + * bytes digest = 3; */ public Builder setDigest(com.google.protobuf.ByteString value) { if (value == null) { @@ -40315,7 +41536,7 @@ public Builder setDigest(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes digest = 3; + * bytes digest = 3; */ public Builder clearDigest() { @@ -40325,12 +41546,12 @@ public Builder clearDigest() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -40353,7 +41574,7 @@ 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); + return new req_submitWork(input, extensionRegistry); } }; @@ -40377,7 +41598,7 @@ public interface rsp_submitWorkOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bool workAccepted = 1; + * bool workAccepted = 1; */ boolean getWorkAccepted(); } @@ -40388,6 +41609,7 @@ 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); @@ -40399,14 +41621,19 @@ private rsp_submitWork() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -40416,7 +41643,8 @@ private rsp_submitWork( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -40434,6 +41662,7 @@ private rsp_submitWork( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -40452,7 +41681,7 @@ private rsp_submitWork( public static final int WORKACCEPTED_FIELD_NUMBER = 1; private boolean workAccepted_; /** - * optional bool workAccepted = 1; + * bool workAccepted = 1; */ public boolean getWorkAccepted() { return workAccepted_; @@ -40473,6 +41702,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (workAccepted_ != false) { output.writeBool(1, workAccepted_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -40484,11 +41714,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, workAccepted_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -40502,6 +41732,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && (getWorkAccepted() == other.getWorkAccepted()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -40511,7 +41742,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + WORKACCEPTED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getWorkAccepted()); @@ -40520,6 +41751,17 @@ public int hashCode() { 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 { @@ -40667,7 +41909,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -40680,12 +41922,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -40702,6 +41944,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_submitWork other) { if (other.getWorkAccepted() != false) { setWorkAccepted(other.getWorkAccepted()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -40730,13 +41973,13 @@ public Builder mergeFrom( private boolean workAccepted_ ; /** - * optional bool workAccepted = 1; + * bool workAccepted = 1; */ public boolean getWorkAccepted() { return workAccepted_; } /** - * optional bool workAccepted = 1; + * bool workAccepted = 1; */ public Builder setWorkAccepted(boolean value) { @@ -40745,7 +41988,7 @@ public Builder setWorkAccepted(boolean value) { return this; } /** - * optional bool workAccepted = 1; + * bool workAccepted = 1; */ public Builder clearWorkAccepted() { @@ -40755,12 +41998,12 @@ public Builder clearWorkAccepted() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -40783,7 +42026,7 @@ 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); + return new rsp_submitWork(input, extensionRegistry); } }; @@ -40837,6 +42080,7 @@ 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); @@ -40848,14 +42092,19 @@ private rsp_fetchQueuedTransactions() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -40865,7 +42114,8 @@ private rsp_fetchQueuedTransactions( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -40890,6 +42140,7 @@ private rsp_fetchQueuedTransactions( if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { tx_ = java.util.Collections.unmodifiableList(tx_); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -40955,6 +42206,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < tx_.size(); i++) { output.writeMessage(1, tx_.get(i)); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -40966,11 +42218,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, tx_.get(i)); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -40984,6 +42236,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getTxList() .equals(other.getTxList()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -40993,7 +42246,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); if (getTxCount() > 0) { hash = (37 * hash) + TX_FIELD_NUMBER; hash = (53 * hash) + getTxList().hashCode(); @@ -41003,6 +42256,17 @@ public int hashCode() { 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 { @@ -41164,7 +42428,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -41177,12 +42441,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -41222,6 +42486,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_fetchQueuedTransacti } } } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -41490,12 +42755,12 @@ public org.aion.api.server.pb.Message.t_AionTx.Builder addTxBuilder( } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -41518,7 +42783,7 @@ 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); + return new rsp_fetchQueuedTransactions(input, extensionRegistry); } }; @@ -41542,7 +42807,7 @@ public interface req_rawTransactionOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes encodedTx = 1; + * bytes encodedTx = 1; */ com.google.protobuf.ByteString getEncodedTx(); } @@ -41553,6 +42818,7 @@ 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); @@ -41564,14 +42830,19 @@ private req_rawTransaction() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -41581,7 +42852,8 @@ private req_rawTransaction( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -41599,6 +42871,7 @@ private req_rawTransaction( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -41617,7 +42890,7 @@ private req_rawTransaction( public static final int ENCODEDTX_FIELD_NUMBER = 1; private com.google.protobuf.ByteString encodedTx_; /** - * optional bytes encodedTx = 1; + * bytes encodedTx = 1; */ public com.google.protobuf.ByteString getEncodedTx() { return encodedTx_; @@ -41638,6 +42911,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!encodedTx_.isEmpty()) { output.writeBytes(1, encodedTx_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -41649,11 +42923,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, encodedTx_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -41667,6 +42941,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getEncodedTx() .equals(other.getEncodedTx()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -41676,7 +42951,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENCODEDTX_FIELD_NUMBER; hash = (53 * hash) + getEncodedTx().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -41684,6 +42959,17 @@ public int hashCode() { 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 { @@ -41831,7 +43117,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -41844,12 +43130,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -41866,6 +43152,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_rawTransaction other if (other.getEncodedTx() != com.google.protobuf.ByteString.EMPTY) { setEncodedTx(other.getEncodedTx()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -41894,13 +43181,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString encodedTx_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes encodedTx = 1; + * bytes encodedTx = 1; */ public com.google.protobuf.ByteString getEncodedTx() { return encodedTx_; } /** - * optional bytes encodedTx = 1; + * bytes encodedTx = 1; */ public Builder setEncodedTx(com.google.protobuf.ByteString value) { if (value == null) { @@ -41912,7 +43199,7 @@ public Builder setEncodedTx(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes encodedTx = 1; + * bytes encodedTx = 1; */ public Builder clearEncodedTx() { @@ -41922,12 +43209,12 @@ public Builder clearEncodedTx() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -41950,7 +43237,7 @@ 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); + return new req_rawTransaction(input, extensionRegistry); } }; @@ -41974,32 +43261,32 @@ public interface req_estimateNrgOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes from = 1; + * bytes from = 1; */ com.google.protobuf.ByteString getFrom(); /** - * optional bytes to = 2; + * bytes to = 2; */ com.google.protobuf.ByteString getTo(); /** - * optional bytes value = 3; + * bytes value = 3; */ com.google.protobuf.ByteString getValue(); /** - * optional bytes data = 4; + * bytes data = 4; */ com.google.protobuf.ByteString getData(); /** - * optional uint64 nrg = 5; + * uint64 nrg = 5; */ long getNrg(); /** - * optional uint64 nrgPrice = 6; + * uint64 nrgPrice = 6; */ long getNrgPrice(); } @@ -42010,6 +43297,7 @@ 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); @@ -42026,14 +43314,19 @@ private req_estimateNrg() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -42043,7 +43336,8 @@ private req_estimateNrg( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -42086,6 +43380,7 @@ private req_estimateNrg( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -42104,7 +43399,7 @@ private req_estimateNrg( public static final int FROM_FIELD_NUMBER = 1; private com.google.protobuf.ByteString from_; /** - * optional bytes from = 1; + * bytes from = 1; */ public com.google.protobuf.ByteString getFrom() { return from_; @@ -42113,7 +43408,7 @@ public com.google.protobuf.ByteString getFrom() { public static final int TO_FIELD_NUMBER = 2; private com.google.protobuf.ByteString to_; /** - * optional bytes to = 2; + * bytes to = 2; */ public com.google.protobuf.ByteString getTo() { return to_; @@ -42122,7 +43417,7 @@ public com.google.protobuf.ByteString getTo() { public static final int VALUE_FIELD_NUMBER = 3; private com.google.protobuf.ByteString value_; /** - * optional bytes value = 3; + * bytes value = 3; */ public com.google.protobuf.ByteString getValue() { return value_; @@ -42131,7 +43426,7 @@ public com.google.protobuf.ByteString getValue() { public static final int DATA_FIELD_NUMBER = 4; private com.google.protobuf.ByteString data_; /** - * optional bytes data = 4; + * bytes data = 4; */ public com.google.protobuf.ByteString getData() { return data_; @@ -42140,7 +43435,7 @@ public com.google.protobuf.ByteString getData() { public static final int NRG_FIELD_NUMBER = 5; private long nrg_; /** - * optional uint64 nrg = 5; + * uint64 nrg = 5; */ public long getNrg() { return nrg_; @@ -42149,7 +43444,7 @@ public long getNrg() { public static final int NRGPRICE_FIELD_NUMBER = 6; private long nrgPrice_; /** - * optional uint64 nrgPrice = 6; + * uint64 nrgPrice = 6; */ public long getNrgPrice() { return nrgPrice_; @@ -42185,6 +43480,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (nrgPrice_ != 0L) { output.writeUInt64(6, nrgPrice_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -42216,11 +43512,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, nrgPrice_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -42244,6 +43540,7 @@ public boolean equals(final java.lang.Object obj) { == other.getNrg()); result = result && (getNrgPrice() == other.getNrgPrice()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -42253,7 +43550,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FROM_FIELD_NUMBER; hash = (53 * hash) + getFrom().hashCode(); hash = (37 * hash) + TO_FIELD_NUMBER; @@ -42273,6 +43570,17 @@ public int hashCode() { 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 { @@ -42435,7 +43743,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -42448,12 +43756,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -42485,6 +43793,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_estimateNrg other) { if (other.getNrgPrice() != 0L) { setNrgPrice(other.getNrgPrice()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -42513,13 +43822,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes from = 1; + * bytes from = 1; */ public com.google.protobuf.ByteString getFrom() { return from_; } /** - * optional bytes from = 1; + * bytes from = 1; */ public Builder setFrom(com.google.protobuf.ByteString value) { if (value == null) { @@ -42531,7 +43840,7 @@ public Builder setFrom(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes from = 1; + * bytes from = 1; */ public Builder clearFrom() { @@ -42542,13 +43851,13 @@ public Builder clearFrom() { private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes to = 2; + * bytes to = 2; */ public com.google.protobuf.ByteString getTo() { return to_; } /** - * optional bytes to = 2; + * bytes to = 2; */ public Builder setTo(com.google.protobuf.ByteString value) { if (value == null) { @@ -42560,7 +43869,7 @@ public Builder setTo(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes to = 2; + * bytes to = 2; */ public Builder clearTo() { @@ -42571,13 +43880,13 @@ public Builder clearTo() { private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes value = 3; + * bytes value = 3; */ public com.google.protobuf.ByteString getValue() { return value_; } /** - * optional bytes value = 3; + * bytes value = 3; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { @@ -42589,7 +43898,7 @@ public Builder setValue(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes value = 3; + * bytes value = 3; */ public Builder clearValue() { @@ -42600,13 +43909,13 @@ public Builder clearValue() { private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes data = 4; + * bytes data = 4; */ public com.google.protobuf.ByteString getData() { return data_; } /** - * optional bytes data = 4; + * bytes data = 4; */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { @@ -42618,7 +43927,7 @@ public Builder setData(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes data = 4; + * bytes data = 4; */ public Builder clearData() { @@ -42629,13 +43938,13 @@ public Builder clearData() { private long nrg_ ; /** - * optional uint64 nrg = 5; + * uint64 nrg = 5; */ public long getNrg() { return nrg_; } /** - * optional uint64 nrg = 5; + * uint64 nrg = 5; */ public Builder setNrg(long value) { @@ -42644,7 +43953,7 @@ public Builder setNrg(long value) { return this; } /** - * optional uint64 nrg = 5; + * uint64 nrg = 5; */ public Builder clearNrg() { @@ -42655,13 +43964,13 @@ public Builder clearNrg() { private long nrgPrice_ ; /** - * optional uint64 nrgPrice = 6; + * uint64 nrgPrice = 6; */ public long getNrgPrice() { return nrgPrice_; } /** - * optional uint64 nrgPrice = 6; + * uint64 nrgPrice = 6; */ public Builder setNrgPrice(long value) { @@ -42670,7 +43979,7 @@ public Builder setNrgPrice(long value) { return this; } /** - * optional uint64 nrgPrice = 6; + * uint64 nrgPrice = 6; */ public Builder clearNrgPrice() { @@ -42680,12 +43989,12 @@ public Builder clearNrgPrice() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -42708,7 +44017,7 @@ 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); + return new req_estimateNrg(input, extensionRegistry); } }; @@ -42732,7 +44041,7 @@ public interface rsp_estimateNrgOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional uint64 nrg = 1; + * uint64 nrg = 1; */ long getNrg(); } @@ -42743,6 +44052,7 @@ 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); @@ -42754,14 +44064,19 @@ private rsp_estimateNrg() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -42771,7 +44086,8 @@ private rsp_estimateNrg( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -42789,6 +44105,7 @@ private rsp_estimateNrg( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -42807,7 +44124,7 @@ private rsp_estimateNrg( public static final int NRG_FIELD_NUMBER = 1; private long nrg_; /** - * optional uint64 nrg = 1; + * uint64 nrg = 1; */ public long getNrg() { return nrg_; @@ -42828,6 +44145,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (nrg_ != 0L) { output.writeUInt64(1, nrg_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -42839,11 +44157,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, nrg_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -42857,6 +44175,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && (getNrg() == other.getNrg()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -42866,7 +44185,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NRG_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNrg()); @@ -42875,6 +44194,17 @@ public int hashCode() { 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 { @@ -43022,7 +44352,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -43035,12 +44365,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -43057,6 +44387,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_estimateNrg other) { if (other.getNrg() != 0L) { setNrg(other.getNrg()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -43085,13 +44416,13 @@ public Builder mergeFrom( private long nrg_ ; /** - * optional uint64 nrg = 1; + * uint64 nrg = 1; */ public long getNrg() { return nrg_; } /** - * optional uint64 nrg = 1; + * uint64 nrg = 1; */ public Builder setNrg(long value) { @@ -43100,7 +44431,7 @@ public Builder setNrg(long value) { return this; } /** - * optional uint64 nrg = 1; + * uint64 nrg = 1; */ public Builder clearNrg() { @@ -43110,12 +44441,12 @@ public Builder clearNrg() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -43138,7 +44469,7 @@ 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); + return new rsp_estimateNrg(input, extensionRegistry); } }; @@ -43162,7 +44493,7 @@ public interface rsp_miningOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bool mining = 1; + * bool mining = 1; */ boolean getMining(); } @@ -43173,6 +44504,7 @@ 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); @@ -43184,14 +44516,19 @@ private rsp_mining() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -43201,7 +44538,8 @@ private rsp_mining( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -43219,6 +44557,7 @@ private rsp_mining( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -43237,7 +44576,7 @@ private rsp_mining( public static final int MINING_FIELD_NUMBER = 1; private boolean mining_; /** - * optional bool mining = 1; + * bool mining = 1; */ public boolean getMining() { return mining_; @@ -43258,6 +44597,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (mining_ != false) { output.writeBool(1, mining_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -43269,11 +44609,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, mining_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -43287,6 +44627,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && (getMining() == other.getMining()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -43296,7 +44637,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MINING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getMining()); @@ -43305,6 +44646,17 @@ public int hashCode() { 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 { @@ -43452,7 +44804,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -43465,12 +44817,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -43487,6 +44839,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_mining other) { if (other.getMining() != false) { setMining(other.getMining()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -43515,13 +44868,13 @@ public Builder mergeFrom( private boolean mining_ ; /** - * optional bool mining = 1; + * bool mining = 1; */ public boolean getMining() { return mining_; } /** - * optional bool mining = 1; + * bool mining = 1; */ public Builder setMining(boolean value) { @@ -43530,7 +44883,7 @@ public Builder setMining(boolean value) { return this; } /** - * optional bool mining = 1; + * bool mining = 1; */ public Builder clearMining() { @@ -43540,12 +44893,12 @@ public Builder clearMining() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -43568,7 +44921,7 @@ 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); + return new rsp_mining(input, extensionRegistry); } }; @@ -43592,17 +44945,17 @@ public interface rsp_syncingOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bool syncing = 1; + * bool syncing = 1; */ boolean getSyncing(); /** - * optional uint64 currentBlock = 2; + * uint64 currentBlock = 2; */ long getCurrentBlock(); /** - * optional uint64 highestBlock = 3; + * uint64 highestBlock = 3; */ long getHighestBlock(); } @@ -43613,6 +44966,7 @@ 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); @@ -43626,14 +44980,19 @@ private rsp_syncing() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -43643,7 +45002,8 @@ private rsp_syncing( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -43671,6 +45031,7 @@ private rsp_syncing( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -43689,7 +45050,7 @@ private rsp_syncing( public static final int SYNCING_FIELD_NUMBER = 1; private boolean syncing_; /** - * optional bool syncing = 1; + * bool syncing = 1; */ public boolean getSyncing() { return syncing_; @@ -43698,7 +45059,7 @@ public boolean getSyncing() { public static final int CURRENTBLOCK_FIELD_NUMBER = 2; private long currentBlock_; /** - * optional uint64 currentBlock = 2; + * uint64 currentBlock = 2; */ public long getCurrentBlock() { return currentBlock_; @@ -43707,7 +45068,7 @@ public long getCurrentBlock() { public static final int HIGHESTBLOCK_FIELD_NUMBER = 3; private long highestBlock_; /** - * optional uint64 highestBlock = 3; + * uint64 highestBlock = 3; */ public long getHighestBlock() { return highestBlock_; @@ -43734,6 +45095,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (highestBlock_ != 0L) { output.writeUInt64(3, highestBlock_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -43753,11 +45115,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, highestBlock_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -43775,6 +45137,7 @@ public boolean equals(final java.lang.Object obj) { == other.getCurrentBlock()); result = result && (getHighestBlock() == other.getHighestBlock()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -43784,7 +45147,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SYNCING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSyncing()); @@ -43799,6 +45162,17 @@ public int hashCode() { 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 { @@ -43952,7 +45326,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -43965,12 +45339,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -43993,6 +45367,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_syncing other) { if (other.getHighestBlock() != 0L) { setHighestBlock(other.getHighestBlock()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -44021,13 +45396,13 @@ public Builder mergeFrom( private boolean syncing_ ; /** - * optional bool syncing = 1; + * bool syncing = 1; */ public boolean getSyncing() { return syncing_; } /** - * optional bool syncing = 1; + * bool syncing = 1; */ public Builder setSyncing(boolean value) { @@ -44036,7 +45411,7 @@ public Builder setSyncing(boolean value) { return this; } /** - * optional bool syncing = 1; + * bool syncing = 1; */ public Builder clearSyncing() { @@ -44047,13 +45422,13 @@ public Builder clearSyncing() { private long currentBlock_ ; /** - * optional uint64 currentBlock = 2; + * uint64 currentBlock = 2; */ public long getCurrentBlock() { return currentBlock_; } /** - * optional uint64 currentBlock = 2; + * uint64 currentBlock = 2; */ public Builder setCurrentBlock(long value) { @@ -44062,7 +45437,7 @@ public Builder setCurrentBlock(long value) { return this; } /** - * optional uint64 currentBlock = 2; + * uint64 currentBlock = 2; */ public Builder clearCurrentBlock() { @@ -44073,13 +45448,13 @@ public Builder clearCurrentBlock() { private long highestBlock_ ; /** - * optional uint64 highestBlock = 3; + * uint64 highestBlock = 3; */ public long getHighestBlock() { return highestBlock_; } /** - * optional uint64 highestBlock = 3; + * uint64 highestBlock = 3; */ public Builder setHighestBlock(long value) { @@ -44088,7 +45463,7 @@ public Builder setHighestBlock(long value) { return this; } /** - * optional uint64 highestBlock = 3; + * uint64 highestBlock = 3; */ public Builder clearHighestBlock() { @@ -44098,12 +45473,12 @@ public Builder clearHighestBlock() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -44126,7 +45501,7 @@ 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); + return new rsp_syncing(input, extensionRegistry); } }; @@ -44150,7 +45525,7 @@ public interface rsp_hashrateOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional uint64 hashrate = 1; + * uint64 hashrate = 1; */ long getHashrate(); } @@ -44161,6 +45536,7 @@ 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); @@ -44172,14 +45548,19 @@ private rsp_hashrate() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -44189,7 +45570,8 @@ private rsp_hashrate( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -44207,6 +45589,7 @@ private rsp_hashrate( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -44225,7 +45608,7 @@ private rsp_hashrate( public static final int HASHRATE_FIELD_NUMBER = 1; private long hashrate_; /** - * optional uint64 hashrate = 1; + * uint64 hashrate = 1; */ public long getHashrate() { return hashrate_; @@ -44246,6 +45629,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (hashrate_ != 0L) { output.writeUInt64(1, hashrate_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -44257,11 +45641,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, hashrate_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -44275,6 +45659,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && (getHashrate() == other.getHashrate()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -44284,7 +45669,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + HASHRATE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getHashrate()); @@ -44293,6 +45678,17 @@ public int hashCode() { 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 { @@ -44440,7 +45836,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -44453,12 +45849,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -44475,6 +45871,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_hashrate other) { if (other.getHashrate() != 0L) { setHashrate(other.getHashrate()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -44503,13 +45900,13 @@ public Builder mergeFrom( private long hashrate_ ; /** - * optional uint64 hashrate = 1; + * uint64 hashrate = 1; */ public long getHashrate() { return hashrate_; } /** - * optional uint64 hashrate = 1; + * uint64 hashrate = 1; */ public Builder setHashrate(long value) { @@ -44518,7 +45915,7 @@ public Builder setHashrate(long value) { return this; } /** - * optional uint64 hashrate = 1; + * uint64 hashrate = 1; */ public Builder clearHashrate() { @@ -44528,12 +45925,12 @@ public Builder clearHashrate() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -44556,7 +45953,7 @@ 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); + return new rsp_hashrate(input, extensionRegistry); } }; @@ -44610,6 +46007,7 @@ 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); @@ -44621,14 +46019,19 @@ private rsp_getActiveNodes() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -44638,7 +46041,8 @@ private rsp_getActiveNodes( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -44663,6 +46067,7 @@ private rsp_getActiveNodes( if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { node_ = java.util.Collections.unmodifiableList(node_); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -44728,6 +46133,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < node_.size(); i++) { output.writeMessage(1, node_.get(i)); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -44739,11 +46145,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, node_.get(i)); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -44757,6 +46163,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getNodeList() .equals(other.getNodeList()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -44766,7 +46173,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); if (getNodeCount() > 0) { hash = (37 * hash) + NODE_FIELD_NUMBER; hash = (53 * hash) + getNodeList().hashCode(); @@ -44776,6 +46183,17 @@ public int hashCode() { 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 { @@ -44937,7 +46355,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -44950,12 +46368,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -44995,6 +46413,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getActiveNodes other } } } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -45263,12 +46682,12 @@ public org.aion.api.server.pb.Message.t_Node.Builder addNodeBuilder( } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -45291,7 +46710,7 @@ 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); + return new rsp_getActiveNodes(input, extensionRegistry); } }; @@ -45345,6 +46764,7 @@ 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); @@ -45356,14 +46776,19 @@ private rsp_getStaticNodes() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -45373,7 +46798,8 @@ private rsp_getStaticNodes( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -45398,6 +46824,7 @@ private rsp_getStaticNodes( if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { node_ = java.util.Collections.unmodifiableList(node_); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -45463,6 +46890,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < node_.size(); i++) { output.writeMessage(1, node_.get(i)); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -45474,11 +46902,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, node_.get(i)); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -45492,6 +46920,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getNodeList() .equals(other.getNodeList()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -45501,7 +46930,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); if (getNodeCount() > 0) { hash = (37 * hash) + NODE_FIELD_NUMBER; hash = (53 * hash) + getNodeList().hashCode(); @@ -45511,6 +46940,17 @@ public int hashCode() { 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 { @@ -45672,7 +47112,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -45685,12 +47125,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -45730,6 +47170,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getStaticNodes other } } } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -45998,12 +47439,12 @@ public org.aion.api.server.pb.Message.t_Node.Builder addNodeBuilder( } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -46026,7 +47467,7 @@ 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); + return new rsp_getStaticNodes(input, extensionRegistry); } }; @@ -46050,11 +47491,11 @@ public interface rsp_getSolcVersionOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional string ver = 1; + * string ver = 1; */ java.lang.String getVer(); /** - * optional string ver = 1; + * string ver = 1; */ com.google.protobuf.ByteString getVerBytes(); @@ -46066,6 +47507,7 @@ 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); @@ -46077,14 +47519,19 @@ private rsp_getSolcVersion() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -46094,7 +47541,8 @@ private rsp_getSolcVersion( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -46113,6 +47561,7 @@ private rsp_getSolcVersion( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -46131,7 +47580,7 @@ private rsp_getSolcVersion( public static final int VER_FIELD_NUMBER = 1; private volatile java.lang.Object ver_; /** - * optional string ver = 1; + * string ver = 1; */ public java.lang.String getVer() { java.lang.Object ref = ver_; @@ -46146,7 +47595,7 @@ public java.lang.String getVer() { } } /** - * optional string ver = 1; + * string ver = 1; */ public com.google.protobuf.ByteString getVerBytes() { @@ -46177,6 +47626,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getVerBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ver_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -46187,11 +47637,11 @@ public int getSerializedSize() { if (!getVerBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ver_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -46205,6 +47655,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getVer() .equals(other.getVer()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -46214,7 +47665,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VER_FIELD_NUMBER; hash = (53 * hash) + getVer().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -46222,6 +47673,17 @@ public int hashCode() { 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 { @@ -46369,7 +47831,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -46382,12 +47844,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -46405,6 +47867,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getSolcVersion other ver_ = other.ver_; onChanged(); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -46433,7 +47896,7 @@ public Builder mergeFrom( private java.lang.Object ver_ = ""; /** - * optional string ver = 1; + * string ver = 1; */ public java.lang.String getVer() { java.lang.Object ref = ver_; @@ -46448,7 +47911,7 @@ public java.lang.String getVer() { } } /** - * optional string ver = 1; + * string ver = 1; */ public com.google.protobuf.ByteString getVerBytes() { @@ -46464,7 +47927,7 @@ public java.lang.String getVer() { } } /** - * optional string ver = 1; + * string ver = 1; */ public Builder setVer( java.lang.String value) { @@ -46477,7 +47940,7 @@ public Builder setVer( return this; } /** - * optional string ver = 1; + * string ver = 1; */ public Builder clearVer() { @@ -46486,7 +47949,7 @@ public Builder clearVer() { return this; } /** - * optional string ver = 1; + * string ver = 1; */ public Builder setVerBytes( com.google.protobuf.ByteString value) { @@ -46501,12 +47964,12 @@ public Builder setVerBytes( } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -46529,7 +47992,7 @@ 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); + return new rsp_getSolcVersion(input, extensionRegistry); } }; @@ -46553,7 +48016,7 @@ public interface rsp_isSyncingOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bool syncing = 1; + * bool syncing = 1; */ boolean getSyncing(); } @@ -46564,6 +48027,7 @@ 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); @@ -46575,14 +48039,19 @@ private rsp_isSyncing() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -46592,7 +48061,8 @@ private rsp_isSyncing( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -46610,6 +48080,7 @@ private rsp_isSyncing( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -46628,7 +48099,7 @@ private rsp_isSyncing( public static final int SYNCING_FIELD_NUMBER = 1; private boolean syncing_; /** - * optional bool syncing = 1; + * bool syncing = 1; */ public boolean getSyncing() { return syncing_; @@ -46649,6 +48120,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (syncing_ != false) { output.writeBool(1, syncing_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -46660,11 +48132,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, syncing_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -46678,6 +48150,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && (getSyncing() == other.getSyncing()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -46687,7 +48160,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SYNCING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSyncing()); @@ -46696,6 +48169,17 @@ public int hashCode() { 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 { @@ -46843,7 +48327,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -46856,12 +48340,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -46878,6 +48362,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_isSyncing other) { if (other.getSyncing() != false) { setSyncing(other.getSyncing()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -46906,13 +48391,13 @@ public Builder mergeFrom( private boolean syncing_ ; /** - * optional bool syncing = 1; + * bool syncing = 1; */ public boolean getSyncing() { return syncing_; } /** - * optional bool syncing = 1; + * bool syncing = 1; */ public Builder setSyncing(boolean value) { @@ -46921,7 +48406,7 @@ public Builder setSyncing(boolean value) { return this; } /** - * optional bool syncing = 1; + * bool syncing = 1; */ public Builder clearSyncing() { @@ -46931,12 +48416,12 @@ public Builder clearSyncing() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -46959,7 +48444,7 @@ 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); + return new rsp_isSyncing(input, extensionRegistry); } }; @@ -46983,22 +48468,22 @@ public interface rsp_syncInfoOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bool syncing = 1; + * bool syncing = 1; */ boolean getSyncing(); /** - * optional uint64 networkBestBlock = 2; + * uint64 networkBestBlock = 2; */ long getNetworkBestBlock(); /** - * optional uint64 chainBestBlock = 3; + * uint64 chainBestBlock = 3; */ long getChainBestBlock(); /** - * optional uint32 maxImportBlocks = 4; + * uint32 maxImportBlocks = 4; */ int getMaxImportBlocks(); } @@ -47009,6 +48494,7 @@ 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); @@ -47023,14 +48509,19 @@ private rsp_syncInfo() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -47040,7 +48531,8 @@ private rsp_syncInfo( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -47073,6 +48565,7 @@ private rsp_syncInfo( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -47091,7 +48584,7 @@ private rsp_syncInfo( public static final int SYNCING_FIELD_NUMBER = 1; private boolean syncing_; /** - * optional bool syncing = 1; + * bool syncing = 1; */ public boolean getSyncing() { return syncing_; @@ -47100,7 +48593,7 @@ public boolean getSyncing() { public static final int NETWORKBESTBLOCK_FIELD_NUMBER = 2; private long networkBestBlock_; /** - * optional uint64 networkBestBlock = 2; + * uint64 networkBestBlock = 2; */ public long getNetworkBestBlock() { return networkBestBlock_; @@ -47109,7 +48602,7 @@ public long getNetworkBestBlock() { public static final int CHAINBESTBLOCK_FIELD_NUMBER = 3; private long chainBestBlock_; /** - * optional uint64 chainBestBlock = 3; + * uint64 chainBestBlock = 3; */ public long getChainBestBlock() { return chainBestBlock_; @@ -47118,7 +48611,7 @@ public long getChainBestBlock() { public static final int MAXIMPORTBLOCKS_FIELD_NUMBER = 4; private int maxImportBlocks_; /** - * optional uint32 maxImportBlocks = 4; + * uint32 maxImportBlocks = 4; */ public int getMaxImportBlocks() { return maxImportBlocks_; @@ -47148,6 +48641,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (maxImportBlocks_ != 0) { output.writeUInt32(4, maxImportBlocks_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -47171,11 +48665,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, maxImportBlocks_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -47195,6 +48689,7 @@ public boolean equals(final java.lang.Object obj) { == other.getChainBestBlock()); result = result && (getMaxImportBlocks() == other.getMaxImportBlocks()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -47204,7 +48699,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SYNCING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSyncing()); @@ -47221,6 +48716,17 @@ public int hashCode() { 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 { @@ -47377,7 +48883,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -47390,12 +48896,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -47421,6 +48927,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_syncInfo other) { if (other.getMaxImportBlocks() != 0) { setMaxImportBlocks(other.getMaxImportBlocks()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -47449,13 +48956,13 @@ public Builder mergeFrom( private boolean syncing_ ; /** - * optional bool syncing = 1; + * bool syncing = 1; */ public boolean getSyncing() { return syncing_; } /** - * optional bool syncing = 1; + * bool syncing = 1; */ public Builder setSyncing(boolean value) { @@ -47464,7 +48971,7 @@ public Builder setSyncing(boolean value) { return this; } /** - * optional bool syncing = 1; + * bool syncing = 1; */ public Builder clearSyncing() { @@ -47475,13 +48982,13 @@ public Builder clearSyncing() { private long networkBestBlock_ ; /** - * optional uint64 networkBestBlock = 2; + * uint64 networkBestBlock = 2; */ public long getNetworkBestBlock() { return networkBestBlock_; } /** - * optional uint64 networkBestBlock = 2; + * uint64 networkBestBlock = 2; */ public Builder setNetworkBestBlock(long value) { @@ -47490,7 +48997,7 @@ public Builder setNetworkBestBlock(long value) { return this; } /** - * optional uint64 networkBestBlock = 2; + * uint64 networkBestBlock = 2; */ public Builder clearNetworkBestBlock() { @@ -47501,13 +49008,13 @@ public Builder clearNetworkBestBlock() { private long chainBestBlock_ ; /** - * optional uint64 chainBestBlock = 3; + * uint64 chainBestBlock = 3; */ public long getChainBestBlock() { return chainBestBlock_; } /** - * optional uint64 chainBestBlock = 3; + * uint64 chainBestBlock = 3; */ public Builder setChainBestBlock(long value) { @@ -47516,7 +49023,7 @@ public Builder setChainBestBlock(long value) { return this; } /** - * optional uint64 chainBestBlock = 3; + * uint64 chainBestBlock = 3; */ public Builder clearChainBestBlock() { @@ -47527,13 +49034,13 @@ public Builder clearChainBestBlock() { private int maxImportBlocks_ ; /** - * optional uint32 maxImportBlocks = 4; + * uint32 maxImportBlocks = 4; */ public int getMaxImportBlocks() { return maxImportBlocks_; } /** - * optional uint32 maxImportBlocks = 4; + * uint32 maxImportBlocks = 4; */ public Builder setMaxImportBlocks(int value) { @@ -47542,7 +49049,7 @@ public Builder setMaxImportBlocks(int value) { return this; } /** - * optional uint32 maxImportBlocks = 4; + * uint32 maxImportBlocks = 4; */ public Builder clearMaxImportBlocks() { @@ -47552,12 +49059,12 @@ public Builder clearMaxImportBlocks() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -47580,7 +49087,7 @@ 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); + return new rsp_syncInfo(input, extensionRegistry); } }; @@ -47604,17 +49111,17 @@ public interface rsp_systemInfoOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional float cpuUsage = 1; + * float cpuUsage = 1; */ float getCpuUsage(); /** - * optional uint64 memoryUsage = 2; + * uint64 memoryUsage = 2; */ long getMemoryUsage(); /** - * optional uint64 DBSize = 3; + * uint64 DBSize = 3; */ long getDBSize(); } @@ -47625,6 +49132,7 @@ 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); @@ -47638,14 +49146,19 @@ private rsp_systemInfo() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -47655,7 +49168,8 @@ private rsp_systemInfo( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -47683,6 +49197,7 @@ private rsp_systemInfo( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -47701,7 +49216,7 @@ private rsp_systemInfo( public static final int CPUUSAGE_FIELD_NUMBER = 1; private float cpuUsage_; /** - * optional float cpuUsage = 1; + * float cpuUsage = 1; */ public float getCpuUsage() { return cpuUsage_; @@ -47710,7 +49225,7 @@ public float getCpuUsage() { public static final int MEMORYUSAGE_FIELD_NUMBER = 2; private long memoryUsage_; /** - * optional uint64 memoryUsage = 2; + * uint64 memoryUsage = 2; */ public long getMemoryUsage() { return memoryUsage_; @@ -47719,7 +49234,7 @@ public long getMemoryUsage() { public static final int DBSIZE_FIELD_NUMBER = 3; private long dBSize_; /** - * optional uint64 DBSize = 3; + * uint64 DBSize = 3; */ public long getDBSize() { return dBSize_; @@ -47746,6 +49261,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (dBSize_ != 0L) { output.writeUInt64(3, dBSize_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -47765,11 +49281,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, dBSize_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -47789,6 +49305,7 @@ public boolean equals(final java.lang.Object obj) { == other.getMemoryUsage()); result = result && (getDBSize() == other.getDBSize()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -47798,7 +49315,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CPUUSAGE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getCpuUsage()); @@ -47813,6 +49330,17 @@ public int hashCode() { 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 { @@ -47966,7 +49494,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -47979,12 +49507,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -48007,6 +49535,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_systemInfo other) { if (other.getDBSize() != 0L) { setDBSize(other.getDBSize()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -48035,13 +49564,13 @@ public Builder mergeFrom( private float cpuUsage_ ; /** - * optional float cpuUsage = 1; + * float cpuUsage = 1; */ public float getCpuUsage() { return cpuUsage_; } /** - * optional float cpuUsage = 1; + * float cpuUsage = 1; */ public Builder setCpuUsage(float value) { @@ -48050,7 +49579,7 @@ public Builder setCpuUsage(float value) { return this; } /** - * optional float cpuUsage = 1; + * float cpuUsage = 1; */ public Builder clearCpuUsage() { @@ -48061,13 +49590,13 @@ public Builder clearCpuUsage() { private long memoryUsage_ ; /** - * optional uint64 memoryUsage = 2; + * uint64 memoryUsage = 2; */ public long getMemoryUsage() { return memoryUsage_; } /** - * optional uint64 memoryUsage = 2; + * uint64 memoryUsage = 2; */ public Builder setMemoryUsage(long value) { @@ -48076,7 +49605,7 @@ public Builder setMemoryUsage(long value) { return this; } /** - * optional uint64 memoryUsage = 2; + * uint64 memoryUsage = 2; */ public Builder clearMemoryUsage() { @@ -48087,13 +49616,13 @@ public Builder clearMemoryUsage() { private long dBSize_ ; /** - * optional uint64 DBSize = 3; + * uint64 DBSize = 3; */ public long getDBSize() { return dBSize_; } /** - * optional uint64 DBSize = 3; + * uint64 DBSize = 3; */ public Builder setDBSize(long value) { @@ -48102,7 +49631,7 @@ public Builder setDBSize(long value) { return this; } /** - * optional uint64 DBSize = 3; + * uint64 DBSize = 3; */ public Builder clearDBSize() { @@ -48112,12 +49641,12 @@ public Builder clearDBSize() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -48140,7 +49669,7 @@ 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); + return new rsp_systemInfo(input, extensionRegistry); } }; @@ -48183,15 +49712,15 @@ public interface req_eventRegisterOrBuilder extends getEventsBytes(int index); /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 2; + * .org.aion.api.server.pb.t_FilterCt filter = 2; */ boolean hasFilter(); /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 2; + * .org.aion.api.server.pb.t_FilterCt filter = 2; */ org.aion.api.server.pb.Message.t_FilterCt getFilter(); /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 2; + * .org.aion.api.server.pb.t_FilterCt filter = 2; */ org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder(); } @@ -48202,6 +49731,7 @@ 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); @@ -48213,14 +49743,19 @@ private req_eventRegister() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -48230,7 +49765,8 @@ private req_eventRegister( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -48268,6 +49804,7 @@ private req_eventRegister( if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { events_ = events_.getUnmodifiableView(); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -48316,19 +49853,19 @@ public java.lang.String getEvents(int index) { public static final int FILTER_FIELD_NUMBER = 2; private org.aion.api.server.pb.Message.t_FilterCt filter_; /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 2; + * .org.aion.api.server.pb.t_FilterCt filter = 2; */ public boolean hasFilter() { return filter_ != null; } /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 2; + * .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_; } /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 2; + * .org.aion.api.server.pb.t_FilterCt filter = 2; */ public org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder() { return getFilter(); @@ -48352,6 +49889,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (filter_ != null) { output.writeMessage(2, getFilter()); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -48371,11 +49909,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getFilter()); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -48394,6 +49932,7 @@ public boolean equals(final java.lang.Object obj) { result = result && getFilter() .equals(other.getFilter()); } + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -48403,7 +49942,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); if (getEventsCount() > 0) { hash = (37 * hash) + EVENTS_FIELD_NUMBER; hash = (53 * hash) + getEventsList().hashCode(); @@ -48417,6 +49956,17 @@ public int hashCode() { 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 { @@ -48582,7 +50132,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -48595,12 +50145,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -48627,6 +50177,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_eventRegister other) if (other.hasFilter()) { mergeFilter(other.getFilter()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -48752,13 +50303,13 @@ public Builder addEventsBytes( 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_; /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 2; + * .org.aion.api.server.pb.t_FilterCt filter = 2; */ public boolean hasFilter() { return filterBuilder_ != null || filter_ != null; } /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 2; + * .org.aion.api.server.pb.t_FilterCt filter = 2; */ public org.aion.api.server.pb.Message.t_FilterCt getFilter() { if (filterBuilder_ == null) { @@ -48768,7 +50319,7 @@ public org.aion.api.server.pb.Message.t_FilterCt getFilter() { } } /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 2; + * .org.aion.api.server.pb.t_FilterCt filter = 2; */ public Builder setFilter(org.aion.api.server.pb.Message.t_FilterCt value) { if (filterBuilder_ == null) { @@ -48784,7 +50335,7 @@ public Builder setFilter(org.aion.api.server.pb.Message.t_FilterCt value) { return this; } /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 2; + * .org.aion.api.server.pb.t_FilterCt filter = 2; */ public Builder setFilter( org.aion.api.server.pb.Message.t_FilterCt.Builder builderForValue) { @@ -48798,7 +50349,7 @@ public Builder setFilter( return this; } /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 2; + * .org.aion.api.server.pb.t_FilterCt filter = 2; */ public Builder mergeFilter(org.aion.api.server.pb.Message.t_FilterCt value) { if (filterBuilder_ == null) { @@ -48816,7 +50367,7 @@ public Builder mergeFilter(org.aion.api.server.pb.Message.t_FilterCt value) { return this; } /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 2; + * .org.aion.api.server.pb.t_FilterCt filter = 2; */ public Builder clearFilter() { if (filterBuilder_ == null) { @@ -48830,7 +50381,7 @@ public Builder clearFilter() { return this; } /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 2; + * .org.aion.api.server.pb.t_FilterCt filter = 2; */ public org.aion.api.server.pb.Message.t_FilterCt.Builder getFilterBuilder() { @@ -48838,7 +50389,7 @@ public org.aion.api.server.pb.Message.t_FilterCt.Builder getFilterBuilder() { return getFilterFieldBuilder().getBuilder(); } /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 2; + * .org.aion.api.server.pb.t_FilterCt filter = 2; */ public org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder() { if (filterBuilder_ != null) { @@ -48849,7 +50400,7 @@ public org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder() { } } /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 2; + * .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> @@ -48866,12 +50417,12 @@ public org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -48894,7 +50445,7 @@ 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); + return new req_eventRegister(input, extensionRegistry); } }; @@ -48918,7 +50469,7 @@ public interface rsp_eventRegisterOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bool result = 1; + * bool result = 1; */ boolean getResult(); } @@ -48929,6 +50480,7 @@ 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); @@ -48940,14 +50492,19 @@ private rsp_eventRegister() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -48957,7 +50514,8 @@ private rsp_eventRegister( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -48975,6 +50533,7 @@ private rsp_eventRegister( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -48993,7 +50552,7 @@ private rsp_eventRegister( public static final int RESULT_FIELD_NUMBER = 1; private boolean result_; /** - * optional bool result = 1; + * bool result = 1; */ public boolean getResult() { return result_; @@ -49014,6 +50573,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (result_ != false) { output.writeBool(1, result_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -49025,11 +50585,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, result_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -49043,6 +50603,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && (getResult() == other.getResult()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -49052,7 +50613,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getResult()); @@ -49061,6 +50622,17 @@ public int hashCode() { 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 { @@ -49208,7 +50780,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -49221,12 +50793,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -49243,6 +50815,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_eventRegister other) if (other.getResult() != false) { setResult(other.getResult()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -49271,13 +50844,13 @@ public Builder mergeFrom( private boolean result_ ; /** - * optional bool result = 1; + * bool result = 1; */ public boolean getResult() { return result_; } /** - * optional bool result = 1; + * bool result = 1; */ public Builder setResult(boolean value) { @@ -49286,7 +50859,7 @@ public Builder setResult(boolean value) { return this; } /** - * optional bool result = 1; + * bool result = 1; */ public Builder clearResult() { @@ -49296,12 +50869,12 @@ public Builder clearResult() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -49324,7 +50897,7 @@ 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); + return new rsp_eventRegister(input, extensionRegistry); } }; @@ -49367,7 +50940,7 @@ public interface req_eventDeregisterOrBuilder extends getEventsBytes(int index); /** - * optional bytes contractAddr = 2; + * bytes contractAddr = 2; */ com.google.protobuf.ByteString getContractAddr(); } @@ -49378,6 +50951,7 @@ 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); @@ -49390,14 +50964,19 @@ private req_eventDeregister() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -49407,7 +50986,8 @@ private req_eventDeregister( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -49437,6 +51017,7 @@ private req_eventDeregister( if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { events_ = events_.getUnmodifiableView(); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -49485,7 +51066,7 @@ public java.lang.String getEvents(int index) { public static final int CONTRACTADDR_FIELD_NUMBER = 2; private com.google.protobuf.ByteString contractAddr_; /** - * optional bytes contractAddr = 2; + * bytes contractAddr = 2; */ public com.google.protobuf.ByteString getContractAddr() { return contractAddr_; @@ -49509,6 +51090,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!contractAddr_.isEmpty()) { output.writeBytes(2, contractAddr_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -49528,11 +51110,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, contractAddr_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -49548,6 +51130,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getEventsList()); result = result && getContractAddr() .equals(other.getContractAddr()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -49557,7 +51140,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); if (getEventsCount() > 0) { hash = (37 * hash) + EVENTS_FIELD_NUMBER; hash = (53 * hash) + getEventsList().hashCode(); @@ -49569,6 +51152,17 @@ public int hashCode() { 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 { @@ -49726,7 +51320,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -49739,12 +51333,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -49771,6 +51365,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_eventDeregister othe if (other.getContractAddr() != com.google.protobuf.ByteString.EMPTY) { setContractAddr(other.getContractAddr()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -49894,13 +51489,13 @@ public Builder addEventsBytes( private com.google.protobuf.ByteString contractAddr_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes contractAddr = 2; + * bytes contractAddr = 2; */ public com.google.protobuf.ByteString getContractAddr() { return contractAddr_; } /** - * optional bytes contractAddr = 2; + * bytes contractAddr = 2; */ public Builder setContractAddr(com.google.protobuf.ByteString value) { if (value == null) { @@ -49912,7 +51507,7 @@ public Builder setContractAddr(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes contractAddr = 2; + * bytes contractAddr = 2; */ public Builder clearContractAddr() { @@ -49922,12 +51517,12 @@ public Builder clearContractAddr() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -49950,7 +51545,7 @@ 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); + return new req_eventDeregister(input, extensionRegistry); } }; @@ -49974,7 +51569,7 @@ public interface rsp_eventDeregisterOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bool result = 1; + * bool result = 1; */ boolean getResult(); } @@ -49985,6 +51580,7 @@ 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); @@ -49996,14 +51592,19 @@ private rsp_eventDeregister() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -50013,7 +51614,8 @@ private rsp_eventDeregister( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -50031,6 +51633,7 @@ private rsp_eventDeregister( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -50049,7 +51652,7 @@ private rsp_eventDeregister( public static final int RESULT_FIELD_NUMBER = 1; private boolean result_; /** - * optional bool result = 1; + * bool result = 1; */ public boolean getResult() { return result_; @@ -50070,6 +51673,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (result_ != false) { output.writeBool(1, result_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -50081,11 +51685,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, result_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -50099,6 +51703,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && (getResult() == other.getResult()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -50108,7 +51713,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getResult()); @@ -50117,6 +51722,17 @@ public int hashCode() { 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 { @@ -50264,7 +51880,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -50277,12 +51893,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -50299,6 +51915,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_eventDeregister othe if (other.getResult() != false) { setResult(other.getResult()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -50327,13 +51944,13 @@ public Builder mergeFrom( private boolean result_ ; /** - * optional bool result = 1; + * bool result = 1; */ public boolean getResult() { return result_; } /** - * optional bool result = 1; + * bool result = 1; */ public Builder setResult(boolean value) { @@ -50342,7 +51959,7 @@ public Builder setResult(boolean value) { return this; } /** - * optional bool result = 1; + * bool result = 1; */ public Builder clearResult() { @@ -50352,12 +51969,12 @@ public Builder clearResult() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -50380,7 +51997,7 @@ 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); + return new rsp_eventDeregister(input, extensionRegistry); } }; @@ -50434,6 +52051,7 @@ 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); @@ -50445,14 +52063,19 @@ private rsp_EventCtCallback() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -50462,7 +52085,8 @@ private rsp_EventCtCallback( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -50487,6 +52111,7 @@ private rsp_EventCtCallback( if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { ec_ = java.util.Collections.unmodifiableList(ec_); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -50552,6 +52177,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < ec_.size(); i++) { output.writeMessage(1, ec_.get(i)); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -50563,11 +52189,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, ec_.get(i)); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -50581,6 +52207,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getEcList() .equals(other.getEcList()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -50590,7 +52217,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); if (getEcCount() > 0) { hash = (37 * hash) + EC_FIELD_NUMBER; hash = (53 * hash) + getEcList().hashCode(); @@ -50600,6 +52227,17 @@ public int hashCode() { 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 { @@ -50761,7 +52399,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -50774,12 +52412,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -50819,6 +52457,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_EventCtCallback othe } } } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -51087,12 +52726,12 @@ public org.aion.api.server.pb.Message.t_EventCt.Builder addEcBuilder( } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -51115,7 +52754,7 @@ 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); + return new rsp_EventCtCallback(input, extensionRegistry); } }; @@ -51158,7 +52797,7 @@ public interface req_accountCreateOrBuilder extends getPasswordBytes(int index); /** - * optional bool privateKey = 2; + * bool privateKey = 2; */ boolean getPrivateKey(); } @@ -51169,6 +52808,7 @@ 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); @@ -51181,14 +52821,19 @@ private req_accountCreate() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -51198,7 +52843,8 @@ private req_accountCreate( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -51228,6 +52874,7 @@ private req_accountCreate( if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { password_ = password_.getUnmodifiableView(); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -51276,7 +52923,7 @@ public java.lang.String getPassword(int index) { public static final int PRIVATEKEY_FIELD_NUMBER = 2; private boolean privateKey_; /** - * optional bool privateKey = 2; + * bool privateKey = 2; */ public boolean getPrivateKey() { return privateKey_; @@ -51300,6 +52947,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (privateKey_ != false) { output.writeBool(2, privateKey_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -51319,11 +52967,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, privateKey_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -51339,6 +52987,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getPasswordList()); result = result && (getPrivateKey() == other.getPrivateKey()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -51348,7 +52997,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); if (getPasswordCount() > 0) { hash = (37 * hash) + PASSWORD_FIELD_NUMBER; hash = (53 * hash) + getPasswordList().hashCode(); @@ -51361,6 +53010,17 @@ public int hashCode() { 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 { @@ -51518,7 +53178,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -51531,12 +53191,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -51563,6 +53223,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_accountCreate other) if (other.getPrivateKey() != false) { setPrivateKey(other.getPrivateKey()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -51686,13 +53347,13 @@ public Builder addPasswordBytes( private boolean privateKey_ ; /** - * optional bool privateKey = 2; + * bool privateKey = 2; */ public boolean getPrivateKey() { return privateKey_; } /** - * optional bool privateKey = 2; + * bool privateKey = 2; */ public Builder setPrivateKey(boolean value) { @@ -51701,7 +53362,7 @@ public Builder setPrivateKey(boolean value) { return this; } /** - * optional bool privateKey = 2; + * bool privateKey = 2; */ public Builder clearPrivateKey() { @@ -51711,12 +53372,12 @@ public Builder clearPrivateKey() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -51739,7 +53400,7 @@ 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); + return new req_accountCreate(input, extensionRegistry); } }; @@ -51795,6 +53456,7 @@ 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); @@ -51807,14 +53469,19 @@ private rsp_accountCreate() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -51824,7 +53491,8 @@ private rsp_accountCreate( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -51859,6 +53527,7 @@ private rsp_accountCreate( if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { privateKey_ = java.util.Collections.unmodifiableList(privateKey_); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -51936,6 +53605,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < privateKey_.size(); i++) { output.writeBytes(2, privateKey_.get(i)); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -51961,11 +53631,11 @@ public int getSerializedSize() { size += dataSize; size += 1 * getPrivateKeyList().size(); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -51981,6 +53651,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getAddressList()); result = result && getPrivateKeyList() .equals(other.getPrivateKeyList()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -51990,7 +53661,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); if (getAddressCount() > 0) { hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddressList().hashCode(); @@ -52004,6 +53675,17 @@ public int hashCode() { 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 { @@ -52163,7 +53845,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -52176,12 +53858,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -52215,6 +53897,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_accountCreate other) } onChanged(); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -52387,12 +54070,12 @@ public Builder clearPrivateKey() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -52415,7 +54098,7 @@ 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); + return new rsp_accountCreate(input, extensionRegistry); } }; @@ -52439,16 +54122,16 @@ public interface req_accountlockOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes account = 1; + * bytes account = 1; */ com.google.protobuf.ByteString getAccount(); /** - * optional string password = 2; + * string password = 2; */ java.lang.String getPassword(); /** - * optional string password = 2; + * string password = 2; */ com.google.protobuf.ByteString getPasswordBytes(); @@ -52460,6 +54143,7 @@ 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); @@ -52472,14 +54156,19 @@ private req_accountlock() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -52489,7 +54178,8 @@ private req_accountlock( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -52513,6 +54203,7 @@ private req_accountlock( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -52531,7 +54222,7 @@ private req_accountlock( public static final int ACCOUNT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString account_; /** - * optional bytes account = 1; + * bytes account = 1; */ public com.google.protobuf.ByteString getAccount() { return account_; @@ -52540,7 +54231,7 @@ public com.google.protobuf.ByteString getAccount() { public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** - * optional string password = 2; + * string password = 2; */ public java.lang.String getPassword() { java.lang.Object ref = password_; @@ -52555,7 +54246,7 @@ public java.lang.String getPassword() { } } /** - * optional string password = 2; + * string password = 2; */ public com.google.protobuf.ByteString getPasswordBytes() { @@ -52589,6 +54280,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getPasswordBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -52603,11 +54295,11 @@ public int getSerializedSize() { if (!getPasswordBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -52623,6 +54315,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getAccount()); result = result && getPassword() .equals(other.getPassword()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -52632,7 +54325,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; hash = (53 * hash) + getAccount().hashCode(); hash = (37 * hash) + PASSWORD_FIELD_NUMBER; @@ -52642,6 +54335,17 @@ public int hashCode() { 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 { @@ -52792,7 +54496,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -52805,12 +54509,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -52831,6 +54535,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_accountlock other) { password_ = other.password_; onChanged(); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -52859,13 +54564,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString account_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes account = 1; + * bytes account = 1; */ public com.google.protobuf.ByteString getAccount() { return account_; } /** - * optional bytes account = 1; + * bytes account = 1; */ public Builder setAccount(com.google.protobuf.ByteString value) { if (value == null) { @@ -52877,7 +54582,7 @@ public Builder setAccount(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes account = 1; + * bytes account = 1; */ public Builder clearAccount() { @@ -52888,7 +54593,7 @@ public Builder clearAccount() { private java.lang.Object password_ = ""; /** - * optional string password = 2; + * string password = 2; */ public java.lang.String getPassword() { java.lang.Object ref = password_; @@ -52903,7 +54608,7 @@ public java.lang.String getPassword() { } } /** - * optional string password = 2; + * string password = 2; */ public com.google.protobuf.ByteString getPasswordBytes() { @@ -52919,7 +54624,7 @@ public java.lang.String getPassword() { } } /** - * optional string password = 2; + * string password = 2; */ public Builder setPassword( java.lang.String value) { @@ -52932,7 +54637,7 @@ public Builder setPassword( return this; } /** - * optional string password = 2; + * string password = 2; */ public Builder clearPassword() { @@ -52941,7 +54646,7 @@ public Builder clearPassword() { return this; } /** - * optional string password = 2; + * string password = 2; */ public Builder setPasswordBytes( com.google.protobuf.ByteString value) { @@ -52956,12 +54661,12 @@ public Builder setPasswordBytes( } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -52984,7 +54689,7 @@ 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); + return new req_accountlock(input, extensionRegistry); } }; @@ -53008,7 +54713,7 @@ public interface rsp_accountlockOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bool locked = 1; + * bool locked = 1; */ boolean getLocked(); } @@ -53019,6 +54724,7 @@ 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); @@ -53030,14 +54736,19 @@ private rsp_accountlock() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -53047,7 +54758,8 @@ private rsp_accountlock( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -53065,6 +54777,7 @@ private rsp_accountlock( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -53083,7 +54796,7 @@ private rsp_accountlock( public static final int LOCKED_FIELD_NUMBER = 1; private boolean locked_; /** - * optional bool locked = 1; + * bool locked = 1; */ public boolean getLocked() { return locked_; @@ -53104,6 +54817,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (locked_ != false) { output.writeBool(1, locked_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -53115,11 +54829,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, locked_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -53133,6 +54847,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && (getLocked() == other.getLocked()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -53142,7 +54857,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LOCKED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getLocked()); @@ -53151,6 +54866,17 @@ public int hashCode() { 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 { @@ -53298,7 +55024,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -53311,12 +55037,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -53333,6 +55059,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_accountlock other) { if (other.getLocked() != false) { setLocked(other.getLocked()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -53361,13 +55088,13 @@ public Builder mergeFrom( private boolean locked_ ; /** - * optional bool locked = 1; + * bool locked = 1; */ public boolean getLocked() { return locked_; } /** - * optional bool locked = 1; + * bool locked = 1; */ public Builder setLocked(boolean value) { @@ -53376,7 +55103,7 @@ public Builder setLocked(boolean value) { return this; } /** - * optional bool locked = 1; + * bool locked = 1; */ public Builder clearLocked() { @@ -53386,12 +55113,12 @@ public Builder clearLocked() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -53414,7 +55141,7 @@ 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); + return new rsp_accountlock(input, extensionRegistry); } }; @@ -53438,21 +55165,21 @@ public interface req_userPrivilegeOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional string username = 1; + * string username = 1; */ java.lang.String getUsername(); /** - * optional string username = 1; + * string username = 1; */ com.google.protobuf.ByteString getUsernameBytes(); /** - * optional string password = 2; + * string password = 2; */ java.lang.String getPassword(); /** - * optional string password = 2; + * string password = 2; */ com.google.protobuf.ByteString getPasswordBytes(); @@ -53464,6 +55191,7 @@ 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); @@ -53476,14 +55204,19 @@ private req_userPrivilege() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -53493,7 +55226,8 @@ private req_userPrivilege( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -53518,6 +55252,7 @@ private req_userPrivilege( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -53536,7 +55271,7 @@ private req_userPrivilege( public static final int USERNAME_FIELD_NUMBER = 1; private volatile java.lang.Object username_; /** - * optional string username = 1; + * string username = 1; */ public java.lang.String getUsername() { java.lang.Object ref = username_; @@ -53551,7 +55286,7 @@ public java.lang.String getUsername() { } } /** - * optional string username = 1; + * string username = 1; */ public com.google.protobuf.ByteString getUsernameBytes() { @@ -53570,7 +55305,7 @@ public java.lang.String getUsername() { public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** - * optional string password = 2; + * string password = 2; */ public java.lang.String getPassword() { java.lang.Object ref = password_; @@ -53585,7 +55320,7 @@ public java.lang.String getPassword() { } } /** - * optional string password = 2; + * string password = 2; */ public com.google.protobuf.ByteString getPasswordBytes() { @@ -53619,6 +55354,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getPasswordBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -53632,11 +55368,11 @@ public int getSerializedSize() { if (!getPasswordBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -53652,6 +55388,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getUsername()); result = result && getPassword() .equals(other.getPassword()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -53661,7 +55398,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + USERNAME_FIELD_NUMBER; hash = (53 * hash) + getUsername().hashCode(); hash = (37 * hash) + PASSWORD_FIELD_NUMBER; @@ -53671,6 +55408,17 @@ public int hashCode() { 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 { @@ -53821,7 +55569,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -53834,12 +55582,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -53861,6 +55609,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_userPrivilege other) password_ = other.password_; onChanged(); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -53889,7 +55638,7 @@ public Builder mergeFrom( private java.lang.Object username_ = ""; /** - * optional string username = 1; + * string username = 1; */ public java.lang.String getUsername() { java.lang.Object ref = username_; @@ -53904,7 +55653,7 @@ public java.lang.String getUsername() { } } /** - * optional string username = 1; + * string username = 1; */ public com.google.protobuf.ByteString getUsernameBytes() { @@ -53920,7 +55669,7 @@ public java.lang.String getUsername() { } } /** - * optional string username = 1; + * string username = 1; */ public Builder setUsername( java.lang.String value) { @@ -53933,7 +55682,7 @@ public Builder setUsername( return this; } /** - * optional string username = 1; + * string username = 1; */ public Builder clearUsername() { @@ -53942,7 +55691,7 @@ public Builder clearUsername() { return this; } /** - * optional string username = 1; + * string username = 1; */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { @@ -53958,7 +55707,7 @@ public Builder setUsernameBytes( private java.lang.Object password_ = ""; /** - * optional string password = 2; + * string password = 2; */ public java.lang.String getPassword() { java.lang.Object ref = password_; @@ -53973,7 +55722,7 @@ public java.lang.String getPassword() { } } /** - * optional string password = 2; + * string password = 2; */ public com.google.protobuf.ByteString getPasswordBytes() { @@ -53989,7 +55738,7 @@ public java.lang.String getPassword() { } } /** - * optional string password = 2; + * string password = 2; */ public Builder setPassword( java.lang.String value) { @@ -54002,7 +55751,7 @@ public Builder setPassword( return this; } /** - * optional string password = 2; + * string password = 2; */ public Builder clearPassword() { @@ -54011,7 +55760,7 @@ public Builder clearPassword() { return this; } /** - * optional string password = 2; + * string password = 2; */ public Builder setPasswordBytes( com.google.protobuf.ByteString value) { @@ -54026,12 +55775,12 @@ public Builder setPasswordBytes( } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -54054,7 +55803,7 @@ 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); + return new req_userPrivilege(input, extensionRegistry); } }; @@ -54103,6 +55852,7 @@ 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); @@ -54114,14 +55864,19 @@ private rsp_userPrivilege() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -54131,7 +55886,8 @@ private rsp_userPrivilege( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -54156,6 +55912,7 @@ private rsp_userPrivilege( if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { privilege_ = privilege_.getUnmodifiableView(); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -54215,6 +55972,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < privilege_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, privilege_.getRaw(i)); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -54230,11 +55988,11 @@ public int getSerializedSize() { size += dataSize; size += 1 * getPrivilegeList().size(); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -54248,6 +56006,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getPrivilegeList() .equals(other.getPrivilegeList()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -54257,7 +56016,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); if (getPrivilegeCount() > 0) { hash = (37 * hash) + PRIVILEGE_FIELD_NUMBER; hash = (53 * hash) + getPrivilegeList().hashCode(); @@ -54267,6 +56026,17 @@ public int hashCode() { 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 { @@ -54419,7 +56189,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -54432,12 +56202,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -54461,6 +56231,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_userPrivilege other) } onChanged(); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -54583,12 +56354,12 @@ public Builder addPrivilegeBytes( } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -54611,7 +56382,7 @@ 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); + return new rsp_userPrivilege(input, extensionRegistry); } }; @@ -54635,15 +56406,15 @@ public interface req_queryCtEventsOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 1; + * .org.aion.api.server.pb.t_FilterCt filter = 1; */ boolean hasFilter(); /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 1; + * .org.aion.api.server.pb.t_FilterCt filter = 1; */ org.aion.api.server.pb.Message.t_FilterCt getFilter(); /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 1; + * .org.aion.api.server.pb.t_FilterCt filter = 1; */ org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder(); } @@ -54654,6 +56425,7 @@ 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); @@ -54664,14 +56436,19 @@ private req_queryCtEvents() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -54681,7 +56458,8 @@ private req_queryCtEvents( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -54707,6 +56485,7 @@ private req_queryCtEvents( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -54725,19 +56504,19 @@ private req_queryCtEvents( public static final int FILTER_FIELD_NUMBER = 1; private org.aion.api.server.pb.Message.t_FilterCt filter_; /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 1; + * .org.aion.api.server.pb.t_FilterCt filter = 1; */ public boolean hasFilter() { return filter_ != null; } /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 1; + * .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_; } /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 1; + * .org.aion.api.server.pb.t_FilterCt filter = 1; */ public org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder() { return getFilter(); @@ -54758,6 +56537,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (filter_ != null) { output.writeMessage(1, getFilter()); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -54769,11 +56549,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getFilter()); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -54790,6 +56570,7 @@ public boolean equals(final java.lang.Object obj) { result = result && getFilter() .equals(other.getFilter()); } + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -54799,7 +56580,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); if (hasFilter()) { hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); @@ -54809,6 +56590,17 @@ public int hashCode() { 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 { @@ -54964,7 +56756,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -54977,12 +56769,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -54999,6 +56791,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_queryCtEvents other) if (other.hasFilter()) { mergeFilter(other.getFilter()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -55029,13 +56822,13 @@ public Builder mergeFrom( 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_; /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 1; + * .org.aion.api.server.pb.t_FilterCt filter = 1; */ public boolean hasFilter() { return filterBuilder_ != null || filter_ != null; } /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 1; + * .org.aion.api.server.pb.t_FilterCt filter = 1; */ public org.aion.api.server.pb.Message.t_FilterCt getFilter() { if (filterBuilder_ == null) { @@ -55045,7 +56838,7 @@ public org.aion.api.server.pb.Message.t_FilterCt getFilter() { } } /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 1; + * .org.aion.api.server.pb.t_FilterCt filter = 1; */ public Builder setFilter(org.aion.api.server.pb.Message.t_FilterCt value) { if (filterBuilder_ == null) { @@ -55061,7 +56854,7 @@ public Builder setFilter(org.aion.api.server.pb.Message.t_FilterCt value) { return this; } /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 1; + * .org.aion.api.server.pb.t_FilterCt filter = 1; */ public Builder setFilter( org.aion.api.server.pb.Message.t_FilterCt.Builder builderForValue) { @@ -55075,7 +56868,7 @@ public Builder setFilter( return this; } /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 1; + * .org.aion.api.server.pb.t_FilterCt filter = 1; */ public Builder mergeFilter(org.aion.api.server.pb.Message.t_FilterCt value) { if (filterBuilder_ == null) { @@ -55093,7 +56886,7 @@ public Builder mergeFilter(org.aion.api.server.pb.Message.t_FilterCt value) { return this; } /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 1; + * .org.aion.api.server.pb.t_FilterCt filter = 1; */ public Builder clearFilter() { if (filterBuilder_ == null) { @@ -55107,7 +56900,7 @@ public Builder clearFilter() { return this; } /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 1; + * .org.aion.api.server.pb.t_FilterCt filter = 1; */ public org.aion.api.server.pb.Message.t_FilterCt.Builder getFilterBuilder() { @@ -55115,7 +56908,7 @@ public org.aion.api.server.pb.Message.t_FilterCt.Builder getFilterBuilder() { return getFilterFieldBuilder().getBuilder(); } /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 1; + * .org.aion.api.server.pb.t_FilterCt filter = 1; */ public org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder() { if (filterBuilder_ != null) { @@ -55126,7 +56919,7 @@ public org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder() { } } /** - * optional .org.aion.api.server.pb.t_FilterCt filter = 1; + * .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> @@ -55143,12 +56936,12 @@ public org.aion.api.server.pb.Message.t_FilterCtOrBuilder getFilterOrBuilder() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -55171,7 +56964,7 @@ 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); + return new req_queryCtEvents(input, extensionRegistry); } }; @@ -55225,6 +57018,7 @@ 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); @@ -55236,14 +57030,19 @@ private rsp_queryCtEvents() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -55253,7 +57052,8 @@ private rsp_queryCtEvents( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -55278,6 +57078,7 @@ private rsp_queryCtEvents( if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { ec_ = java.util.Collections.unmodifiableList(ec_); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -55343,6 +57144,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < ec_.size(); i++) { output.writeMessage(1, ec_.get(i)); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -55354,11 +57156,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, ec_.get(i)); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -55372,6 +57174,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getEcList() .equals(other.getEcList()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -55381,7 +57184,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); if (getEcCount() > 0) { hash = (37 * hash) + EC_FIELD_NUMBER; hash = (53 * hash) + getEcList().hashCode(); @@ -55391,6 +57194,17 @@ public int hashCode() { 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 { @@ -55552,7 +57366,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -55565,12 +57379,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -55610,6 +57424,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_queryCtEvents other) } } } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -55878,12 +57693,12 @@ public org.aion.api.server.pb.Message.t_EventCt.Builder addEcBuilder( } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -55906,7 +57721,7 @@ 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); + return new rsp_queryCtEvents(input, extensionRegistry); } }; @@ -55930,21 +57745,21 @@ public interface t_PrivateKeyOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional string privateKey = 1; + * string privateKey = 1; */ java.lang.String getPrivateKey(); /** - * optional string privateKey = 1; + * string privateKey = 1; */ com.google.protobuf.ByteString getPrivateKeyBytes(); /** - * optional string password = 2; + * string password = 2; */ java.lang.String getPassword(); /** - * optional string password = 2; + * string password = 2; */ com.google.protobuf.ByteString getPasswordBytes(); @@ -55956,6 +57771,7 @@ 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); @@ -55968,14 +57784,19 @@ private t_PrivateKey() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -55985,7 +57806,8 @@ private t_PrivateKey( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -56010,6 +57832,7 @@ private t_PrivateKey( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -56028,7 +57851,7 @@ private t_PrivateKey( public static final int PRIVATEKEY_FIELD_NUMBER = 1; private volatile java.lang.Object privateKey_; /** - * optional string privateKey = 1; + * string privateKey = 1; */ public java.lang.String getPrivateKey() { java.lang.Object ref = privateKey_; @@ -56043,7 +57866,7 @@ public java.lang.String getPrivateKey() { } } /** - * optional string privateKey = 1; + * string privateKey = 1; */ public com.google.protobuf.ByteString getPrivateKeyBytes() { @@ -56062,7 +57885,7 @@ public java.lang.String getPrivateKey() { public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** - * optional string password = 2; + * string password = 2; */ public java.lang.String getPassword() { java.lang.Object ref = password_; @@ -56077,7 +57900,7 @@ public java.lang.String getPassword() { } } /** - * optional string password = 2; + * string password = 2; */ public com.google.protobuf.ByteString getPasswordBytes() { @@ -56111,6 +57934,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getPasswordBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -56124,11 +57948,11 @@ public int getSerializedSize() { if (!getPasswordBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -56144,6 +57968,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getPrivateKey()); result = result && getPassword() .equals(other.getPassword()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -56153,7 +57978,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PRIVATEKEY_FIELD_NUMBER; hash = (53 * hash) + getPrivateKey().hashCode(); hash = (37 * hash) + PASSWORD_FIELD_NUMBER; @@ -56163,6 +57988,17 @@ public int hashCode() { 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 { @@ -56313,7 +58149,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -56326,12 +58162,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -56353,6 +58189,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.t_PrivateKey other) { password_ = other.password_; onChanged(); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -56381,7 +58218,7 @@ public Builder mergeFrom( private java.lang.Object privateKey_ = ""; /** - * optional string privateKey = 1; + * string privateKey = 1; */ public java.lang.String getPrivateKey() { java.lang.Object ref = privateKey_; @@ -56396,7 +58233,7 @@ public java.lang.String getPrivateKey() { } } /** - * optional string privateKey = 1; + * string privateKey = 1; */ public com.google.protobuf.ByteString getPrivateKeyBytes() { @@ -56412,7 +58249,7 @@ public java.lang.String getPrivateKey() { } } /** - * optional string privateKey = 1; + * string privateKey = 1; */ public Builder setPrivateKey( java.lang.String value) { @@ -56425,7 +58262,7 @@ public Builder setPrivateKey( return this; } /** - * optional string privateKey = 1; + * string privateKey = 1; */ public Builder clearPrivateKey() { @@ -56434,7 +58271,7 @@ public Builder clearPrivateKey() { return this; } /** - * optional string privateKey = 1; + * string privateKey = 1; */ public Builder setPrivateKeyBytes( com.google.protobuf.ByteString value) { @@ -56450,7 +58287,7 @@ public Builder setPrivateKeyBytes( private java.lang.Object password_ = ""; /** - * optional string password = 2; + * string password = 2; */ public java.lang.String getPassword() { java.lang.Object ref = password_; @@ -56465,7 +58302,7 @@ public java.lang.String getPassword() { } } /** - * optional string password = 2; + * string password = 2; */ public com.google.protobuf.ByteString getPasswordBytes() { @@ -56481,7 +58318,7 @@ public java.lang.String getPassword() { } } /** - * optional string password = 2; + * string password = 2; */ public Builder setPassword( java.lang.String value) { @@ -56494,7 +58331,7 @@ public Builder setPassword( return this; } /** - * optional string password = 2; + * string password = 2; */ public Builder clearPassword() { @@ -56503,7 +58340,7 @@ public Builder clearPassword() { return this; } /** - * optional string password = 2; + * string password = 2; */ public Builder setPasswordBytes( com.google.protobuf.ByteString value) { @@ -56518,12 +58355,12 @@ public Builder setPasswordBytes( } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -56546,7 +58383,7 @@ 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); + return new t_PrivateKey(input, extensionRegistry); } }; @@ -56600,6 +58437,7 @@ 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); @@ -56611,14 +58449,19 @@ private req_importAccounts() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -56628,7 +58471,8 @@ private req_importAccounts( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -56653,6 +58497,7 @@ private req_importAccounts( if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { privateKey_ = java.util.Collections.unmodifiableList(privateKey_); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -56718,6 +58563,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < privateKey_.size(); i++) { output.writeMessage(1, privateKey_.get(i)); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -56729,11 +58575,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, privateKey_.get(i)); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -56747,6 +58593,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getPrivateKeyList() .equals(other.getPrivateKeyList()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -56756,7 +58603,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); if (getPrivateKeyCount() > 0) { hash = (37 * hash) + PRIVATEKEY_FIELD_NUMBER; hash = (53 * hash) + getPrivateKeyList().hashCode(); @@ -56766,6 +58613,17 @@ public int hashCode() { 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 { @@ -56927,7 +58785,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -56940,12 +58798,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -56985,6 +58843,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_importAccounts other } } } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -57253,12 +59112,12 @@ public org.aion.api.server.pb.Message.t_PrivateKey.Builder addPrivateKeyBuilder( } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -57281,7 +59140,7 @@ 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); + return new req_importAccounts(input, extensionRegistry); } }; @@ -57330,6 +59189,7 @@ 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); @@ -57341,14 +59201,19 @@ private rsp_importAccounts() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -57358,7 +59223,8 @@ private rsp_importAccounts( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -57383,6 +59249,7 @@ private rsp_importAccounts( if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { invalidKey_ = invalidKey_.getUnmodifiableView(); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -57442,6 +59309,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < invalidKey_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, invalidKey_.getRaw(i)); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -57457,11 +59325,11 @@ public int getSerializedSize() { size += dataSize; size += 1 * getInvalidKeyList().size(); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -57475,6 +59343,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getInvalidKeyList() .equals(other.getInvalidKeyList()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -57484,7 +59353,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); if (getInvalidKeyCount() > 0) { hash = (37 * hash) + INVALIDKEY_FIELD_NUMBER; hash = (53 * hash) + getInvalidKeyList().hashCode(); @@ -57494,6 +59363,17 @@ public int hashCode() { 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 { @@ -57646,7 +59526,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -57659,12 +59539,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -57688,6 +59568,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_importAccounts other } onChanged(); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -57810,12 +59691,12 @@ public Builder addInvalidKeyBytes( } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -57838,7 +59719,7 @@ 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); + return new rsp_importAccounts(input, extensionRegistry); } }; @@ -57862,16 +59743,16 @@ public interface t_KeyOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes address = 1; + * bytes address = 1; */ com.google.protobuf.ByteString getAddress(); /** - * optional string password = 2; + * string password = 2; */ java.lang.String getPassword(); /** - * optional string password = 2; + * string password = 2; */ com.google.protobuf.ByteString getPasswordBytes(); @@ -57883,6 +59764,7 @@ 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); @@ -57895,14 +59777,19 @@ private t_Key() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -57912,7 +59799,8 @@ private t_Key( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -57936,6 +59824,7 @@ private t_Key( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -57954,7 +59843,7 @@ private t_Key( public static final int ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString address_; /** - * optional bytes address = 1; + * bytes address = 1; */ public com.google.protobuf.ByteString getAddress() { return address_; @@ -57963,7 +59852,7 @@ public com.google.protobuf.ByteString getAddress() { public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** - * optional string password = 2; + * string password = 2; */ public java.lang.String getPassword() { java.lang.Object ref = password_; @@ -57978,7 +59867,7 @@ public java.lang.String getPassword() { } } /** - * optional string password = 2; + * string password = 2; */ public com.google.protobuf.ByteString getPasswordBytes() { @@ -58012,6 +59901,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getPasswordBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -58026,11 +59916,11 @@ public int getSerializedSize() { if (!getPasswordBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -58046,6 +59936,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getAddress()); result = result && getPassword() .equals(other.getPassword()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -58055,7 +59946,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); hash = (37 * hash) + PASSWORD_FIELD_NUMBER; @@ -58065,6 +59956,17 @@ public int hashCode() { 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 { @@ -58215,7 +60117,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -58228,12 +60130,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -58254,6 +60156,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.t_Key other) { password_ = other.password_; onChanged(); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -58282,13 +60185,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes address = 1; + * bytes address = 1; */ public com.google.protobuf.ByteString getAddress() { return address_; } /** - * optional bytes address = 1; + * bytes address = 1; */ public Builder setAddress(com.google.protobuf.ByteString value) { if (value == null) { @@ -58300,7 +60203,7 @@ public Builder setAddress(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes address = 1; + * bytes address = 1; */ public Builder clearAddress() { @@ -58311,7 +60214,7 @@ public Builder clearAddress() { private java.lang.Object password_ = ""; /** - * optional string password = 2; + * string password = 2; */ public java.lang.String getPassword() { java.lang.Object ref = password_; @@ -58326,7 +60229,7 @@ public java.lang.String getPassword() { } } /** - * optional string password = 2; + * string password = 2; */ public com.google.protobuf.ByteString getPasswordBytes() { @@ -58342,7 +60245,7 @@ public java.lang.String getPassword() { } } /** - * optional string password = 2; + * string password = 2; */ public Builder setPassword( java.lang.String value) { @@ -58355,7 +60258,7 @@ public Builder setPassword( return this; } /** - * optional string password = 2; + * string password = 2; */ public Builder clearPassword() { @@ -58364,7 +60267,7 @@ public Builder clearPassword() { return this; } /** - * optional string password = 2; + * string password = 2; */ public Builder setPasswordBytes( com.google.protobuf.ByteString value) { @@ -58379,12 +60282,12 @@ public Builder setPasswordBytes( } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -58407,7 +60310,7 @@ 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); + return new t_Key(input, extensionRegistry); } }; @@ -58461,6 +60364,7 @@ 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); @@ -58472,14 +60376,19 @@ private req_exportAccounts() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -58489,7 +60398,8 @@ private req_exportAccounts( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -58514,6 +60424,7 @@ private req_exportAccounts( if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { keyFile_ = java.util.Collections.unmodifiableList(keyFile_); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -58579,6 +60490,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < keyFile_.size(); i++) { output.writeMessage(1, keyFile_.get(i)); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -58590,11 +60502,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, keyFile_.get(i)); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -58608,6 +60520,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getKeyFileList() .equals(other.getKeyFileList()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -58617,7 +60530,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); if (getKeyFileCount() > 0) { hash = (37 * hash) + KEYFILE_FIELD_NUMBER; hash = (53 * hash) + getKeyFileList().hashCode(); @@ -58627,6 +60540,17 @@ public int hashCode() { 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 { @@ -58788,7 +60712,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -58801,12 +60725,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -58846,6 +60770,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_exportAccounts other } } } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -59114,12 +61039,12 @@ public org.aion.api.server.pb.Message.t_Key.Builder addKeyFileBuilder( } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -59142,7 +61067,7 @@ 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); + return new req_exportAccounts(input, extensionRegistry); } }; @@ -59198,6 +61123,7 @@ 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); @@ -59210,14 +61136,19 @@ private rsp_exportAccounts() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -59227,7 +61158,8 @@ private rsp_exportAccounts( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -59262,6 +61194,7 @@ private rsp_exportAccounts( if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { failedKey_ = java.util.Collections.unmodifiableList(failedKey_); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -59339,6 +61272,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < failedKey_.size(); i++) { output.writeBytes(2, failedKey_.get(i)); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -59364,11 +61298,11 @@ public int getSerializedSize() { size += dataSize; size += 1 * getFailedKeyList().size(); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -59384,6 +61318,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getKeyFileList()); result = result && getFailedKeyList() .equals(other.getFailedKeyList()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -59393,7 +61328,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); if (getKeyFileCount() > 0) { hash = (37 * hash) + KEYFILE_FIELD_NUMBER; hash = (53 * hash) + getKeyFileList().hashCode(); @@ -59407,6 +61342,17 @@ public int hashCode() { 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 { @@ -59566,7 +61512,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -59579,12 +61525,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -59618,6 +61564,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_exportAccounts other } onChanged(); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -59790,12 +61737,12 @@ public Builder clearFailedKey() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -59818,7 +61765,7 @@ 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); + return new rsp_exportAccounts(input, extensionRegistry); } }; @@ -59842,7 +61789,7 @@ public interface rsp_getCurrentTotalDifficultyOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional bytes totalDiff = 1; + * bytes totalDiff = 1; */ com.google.protobuf.ByteString getTotalDiff(); } @@ -59853,6 +61800,7 @@ 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); @@ -59864,14 +61812,19 @@ private rsp_getCurrentTotalDifficulty() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -59881,7 +61834,8 @@ private rsp_getCurrentTotalDifficulty( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -59899,6 +61853,7 @@ private rsp_getCurrentTotalDifficulty( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -59917,7 +61872,7 @@ private rsp_getCurrentTotalDifficulty( public static final int TOTALDIFF_FIELD_NUMBER = 1; private com.google.protobuf.ByteString totalDiff_; /** - * optional bytes totalDiff = 1; + * bytes totalDiff = 1; */ public com.google.protobuf.ByteString getTotalDiff() { return totalDiff_; @@ -59938,6 +61893,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!totalDiff_.isEmpty()) { output.writeBytes(1, totalDiff_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -59949,11 +61905,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, totalDiff_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -59967,6 +61923,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getTotalDiff() .equals(other.getTotalDiff()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -59976,7 +61933,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TOTALDIFF_FIELD_NUMBER; hash = (53 * hash) + getTotalDiff().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -59984,6 +61941,17 @@ public int hashCode() { 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 { @@ -60131,7 +62099,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -60144,12 +62112,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -60166,6 +62134,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getCurrentTotalDiffi if (other.getTotalDiff() != com.google.protobuf.ByteString.EMPTY) { setTotalDiff(other.getTotalDiff()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -60194,13 +62163,13 @@ public Builder mergeFrom( private com.google.protobuf.ByteString totalDiff_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes totalDiff = 1; + * bytes totalDiff = 1; */ public com.google.protobuf.ByteString getTotalDiff() { return totalDiff_; } /** - * optional bytes totalDiff = 1; + * bytes totalDiff = 1; */ public Builder setTotalDiff(com.google.protobuf.ByteString value) { if (value == null) { @@ -60212,7 +62181,7 @@ public Builder setTotalDiff(com.google.protobuf.ByteString value) { return this; } /** - * optional bytes totalDiff = 1; + * bytes totalDiff = 1; */ public Builder clearTotalDiff() { @@ -60222,12 +62191,12 @@ public Builder clearTotalDiff() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -60250,7 +62219,7 @@ 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); + return new rsp_getCurrentTotalDifficulty(input, extensionRegistry); } }; @@ -60293,6 +62262,7 @@ 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); @@ -60304,14 +62274,19 @@ private req_getBlockDetailsByNumber() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -60321,7 +62296,8 @@ private req_getBlockDetailsByNumber( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -60358,6 +62334,7 @@ private req_getBlockDetailsByNumber( if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { blkNumbers_ = java.util.Collections.unmodifiableList(blkNumbers_); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -60416,6 +62393,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < blkNumbers_.size(); i++) { output.writeUInt64NoTag(blkNumbers_.get(i)); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -60437,11 +62415,11 @@ public int getSerializedSize() { } blkNumbersMemoizedSerializedSize = dataSize; } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -60455,6 +62433,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getBlkNumbersList() .equals(other.getBlkNumbersList()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -60464,7 +62443,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); if (getBlkNumbersCount() > 0) { hash = (37 * hash) + BLKNUMBERS_FIELD_NUMBER; hash = (53 * hash) + getBlkNumbersList().hashCode(); @@ -60474,6 +62453,17 @@ public int hashCode() { 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 { @@ -60626,7 +62616,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -60639,12 +62629,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -60668,6 +62658,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockDetailsByNum } onChanged(); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -60762,12 +62753,12 @@ public Builder clearBlkNumbers() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -60790,7 +62781,7 @@ 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); + return new req_getBlockDetailsByNumber(input, extensionRegistry); } }; @@ -60844,6 +62835,7 @@ 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); @@ -60855,14 +62847,19 @@ private rsp_getBlockDetailsByNumber() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -60872,7 +62869,8 @@ private rsp_getBlockDetailsByNumber( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -60897,6 +62895,7 @@ private rsp_getBlockDetailsByNumber( if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { blkDetails_ = java.util.Collections.unmodifiableList(blkDetails_); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -60962,6 +62961,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < blkDetails_.size(); i++) { output.writeMessage(1, blkDetails_.get(i)); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -60973,11 +62973,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, blkDetails_.get(i)); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -60991,6 +62991,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getBlkDetailsList() .equals(other.getBlkDetailsList()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -61000,7 +63001,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); if (getBlkDetailsCount() > 0) { hash = (37 * hash) + BLKDETAILS_FIELD_NUMBER; hash = (53 * hash) + getBlkDetailsList().hashCode(); @@ -61010,6 +63011,17 @@ public int hashCode() { 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 { @@ -61171,7 +63183,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -61184,12 +63196,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -61229,6 +63241,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlockDetailsByNum } } } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -61497,12 +63510,12 @@ public org.aion.api.server.pb.Message.t_BlockDetail.Builder addBlkDetailsBuilder } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -61525,7 +63538,7 @@ 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); + return new rsp_getBlockDetailsByNumber(input, extensionRegistry); } }; @@ -61549,7 +63562,7 @@ public interface req_getBlockDetailsByLatestOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional uint64 count = 1; + * uint64 count = 1; */ long getCount(); } @@ -61560,6 +63573,7 @@ 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); @@ -61571,14 +63585,19 @@ private req_getBlockDetailsByLatest() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -61588,7 +63607,8 @@ private req_getBlockDetailsByLatest( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -61606,6 +63626,7 @@ private req_getBlockDetailsByLatest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -61624,7 +63645,7 @@ private req_getBlockDetailsByLatest( public static final int COUNT_FIELD_NUMBER = 1; private long count_; /** - * optional uint64 count = 1; + * uint64 count = 1; */ public long getCount() { return count_; @@ -61645,6 +63666,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (count_ != 0L) { output.writeUInt64(1, count_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -61656,11 +63678,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, count_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -61674,6 +63696,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && (getCount() == other.getCount()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -61683,7 +63706,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCount()); @@ -61692,6 +63715,17 @@ public int hashCode() { return hash; } + 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 { @@ -61839,7 +63873,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -61852,12 +63886,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -61874,6 +63908,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockDetailsByLat if (other.getCount() != 0L) { setCount(other.getCount()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -61902,13 +63937,13 @@ public Builder mergeFrom( private long count_ ; /** - * optional uint64 count = 1; + * uint64 count = 1; */ public long getCount() { return count_; } /** - * optional uint64 count = 1; + * uint64 count = 1; */ public Builder setCount(long value) { @@ -61917,7 +63952,7 @@ public Builder setCount(long value) { return this; } /** - * optional uint64 count = 1; + * uint64 count = 1; */ public Builder clearCount() { @@ -61927,12 +63962,12 @@ public Builder clearCount() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -61955,7 +63990,7 @@ 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); + return new req_getBlockDetailsByLatest(input, extensionRegistry); } }; @@ -62009,6 +64044,7 @@ 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); @@ -62020,14 +64056,19 @@ private rsp_getBlockDetailsByLatest() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -62037,7 +64078,8 @@ private rsp_getBlockDetailsByLatest( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -62062,6 +64104,7 @@ private rsp_getBlockDetailsByLatest( if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { blkDetails_ = java.util.Collections.unmodifiableList(blkDetails_); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -62127,6 +64170,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < blkDetails_.size(); i++) { output.writeMessage(1, blkDetails_.get(i)); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -62138,11 +64182,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, blkDetails_.get(i)); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -62156,6 +64200,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getBlkDetailsList() .equals(other.getBlkDetailsList()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -62165,7 +64210,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); if (getBlkDetailsCount() > 0) { hash = (37 * hash) + BLKDETAILS_FIELD_NUMBER; hash = (53 * hash) + getBlkDetailsList().hashCode(); @@ -62175,6 +64220,17 @@ public int hashCode() { return hash; } + 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 { @@ -62336,7 +64392,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -62349,12 +64405,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -62394,6 +64450,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlockDetailsByLat } } } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -62662,12 +64719,12 @@ public org.aion.api.server.pb.Message.t_BlockDetail.Builder addBlkDetailsBuilder } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -62690,7 +64747,7 @@ 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); + return new rsp_getBlockDetailsByLatest(input, extensionRegistry); } }; @@ -62714,7 +64771,7 @@ public interface req_getBlocksByLatestOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional uint64 count = 1; + * uint64 count = 1; */ long getCount(); } @@ -62725,6 +64782,7 @@ 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); @@ -62736,14 +64794,19 @@ private req_getBlocksByLatest() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -62753,7 +64816,8 @@ private req_getBlocksByLatest( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -62771,6 +64835,7 @@ private req_getBlocksByLatest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -62789,7 +64854,7 @@ private req_getBlocksByLatest( public static final int COUNT_FIELD_NUMBER = 1; private long count_; /** - * optional uint64 count = 1; + * uint64 count = 1; */ public long getCount() { return count_; @@ -62810,6 +64875,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (count_ != 0L) { output.writeUInt64(1, count_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -62821,11 +64887,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, count_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -62839,6 +64905,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && (getCount() == other.getCount()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -62848,7 +64915,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCount()); @@ -62857,6 +64924,17 @@ public int hashCode() { return hash; } + 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 { @@ -63004,7 +65082,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -63017,12 +65095,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -63039,6 +65117,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlocksByLatest ot if (other.getCount() != 0L) { setCount(other.getCount()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -63067,13 +65146,13 @@ public Builder mergeFrom( private long count_ ; /** - * optional uint64 count = 1; + * uint64 count = 1; */ public long getCount() { return count_; } /** - * optional uint64 count = 1; + * uint64 count = 1; */ public Builder setCount(long value) { @@ -63082,7 +65161,7 @@ public Builder setCount(long value) { return this; } /** - * optional uint64 count = 1; + * uint64 count = 1; */ public Builder clearCount() { @@ -63092,12 +65171,12 @@ public Builder clearCount() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -63120,7 +65199,7 @@ 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); + return new req_getBlocksByLatest(input, extensionRegistry); } }; @@ -63174,6 +65253,7 @@ 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); @@ -63185,14 +65265,19 @@ private rsp_getBlocksByLatest() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -63202,7 +65287,8 @@ private rsp_getBlocksByLatest( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -63227,6 +65313,7 @@ private rsp_getBlocksByLatest( if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { blks_ = java.util.Collections.unmodifiableList(blks_); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -63292,6 +65379,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < blks_.size(); i++) { output.writeMessage(1, blks_.get(i)); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -63303,11 +65391,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, blks_.get(i)); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -63321,6 +65409,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getBlksList() .equals(other.getBlksList()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -63330,7 +65419,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); if (getBlksCount() > 0) { hash = (37 * hash) + BLKS_FIELD_NUMBER; hash = (53 * hash) + getBlksList().hashCode(); @@ -63340,6 +65429,17 @@ public int hashCode() { 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_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 { @@ -63501,7 +65601,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -63514,12 +65614,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -63559,6 +65659,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlocksByLatest ot } } } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -63827,12 +65928,12 @@ public org.aion.api.server.pb.Message.t_Block.Builder addBlksBuilder( } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -63855,7 +65956,7 @@ 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); + return new rsp_getBlocksByLatest(input, extensionRegistry); } }; @@ -63898,6 +65999,7 @@ 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); @@ -63909,14 +66011,19 @@ private req_getAccountDetailsByAddressList() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -63926,7 +66033,8 @@ private req_getAccountDetailsByAddressList( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -63950,6 +66058,7 @@ private req_getAccountDetailsByAddressList( if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { addresses_ = java.util.Collections.unmodifiableList(addresses_); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -64002,6 +66111,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < addresses_.size(); i++) { output.writeBytes(1, addresses_.get(i)); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -64018,11 +66128,11 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAddressesList().size(); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -64036,6 +66146,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getAddressesList() .equals(other.getAddressesList()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -64045,7 +66156,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); if (getAddressesCount() > 0) { hash = (37 * hash) + ADDRESSES_FIELD_NUMBER; hash = (53 * hash) + getAddressesList().hashCode(); @@ -64055,6 +66166,17 @@ public int hashCode() { return hash; } + 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 { @@ -64207,7 +66329,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -64220,12 +66342,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -64249,6 +66371,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_getAccountDetailsByA } onChanged(); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -64349,12 +66472,12 @@ public Builder clearAddresses() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -64377,7 +66500,7 @@ 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); + return new req_getAccountDetailsByAddressList(input, extensionRegistry); } }; @@ -64431,6 +66554,7 @@ 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); @@ -64442,14 +66566,19 @@ private rsp_getAccountDetailsByAddressList() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -64459,7 +66588,8 @@ private rsp_getAccountDetailsByAddressList( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -64484,6 +66614,7 @@ private rsp_getAccountDetailsByAddressList( if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { accounts_ = java.util.Collections.unmodifiableList(accounts_); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -64549,6 +66680,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < accounts_.size(); i++) { output.writeMessage(1, accounts_.get(i)); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -64560,11 +66692,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, accounts_.get(i)); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -64578,6 +66710,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getAccountsList() .equals(other.getAccountsList()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -64587,7 +66720,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); if (getAccountsCount() > 0) { hash = (37 * hash) + ACCOUNTS_FIELD_NUMBER; hash = (53 * hash) + getAccountsList().hashCode(); @@ -64597,6 +66730,17 @@ public int hashCode() { return hash; } + 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 { @@ -64758,7 +66902,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -64771,12 +66915,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -64816,6 +66960,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getAccountDetailsByA } } } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -65084,12 +67229,12 @@ public org.aion.api.server.pb.Message.t_AccountDetail.Builder addAccountsBuilder } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -65112,7 +67257,7 @@ 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); + return new rsp_getAccountDetailsByAddressList(input, extensionRegistry); } }; @@ -65136,12 +67281,12 @@ public interface req_getBlockSqlByRangeOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional uint64 blkNumberStart = 1; + * uint64 blkNumberStart = 1; */ long getBlkNumberStart(); /** - * optional uint64 blkNumberEnd = 2; + * uint64 blkNumberEnd = 2; */ long getBlkNumberEnd(); } @@ -65152,6 +67297,7 @@ 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); @@ -65164,14 +67310,19 @@ private req_getBlockSqlByRange() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -65181,7 +67332,8 @@ private req_getBlockSqlByRange( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -65204,6 +67356,7 @@ private req_getBlockSqlByRange( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -65222,7 +67375,7 @@ private req_getBlockSqlByRange( public static final int BLKNUMBERSTART_FIELD_NUMBER = 1; private long blkNumberStart_; /** - * optional uint64 blkNumberStart = 1; + * uint64 blkNumberStart = 1; */ public long getBlkNumberStart() { return blkNumberStart_; @@ -65231,7 +67384,7 @@ public long getBlkNumberStart() { public static final int BLKNUMBEREND_FIELD_NUMBER = 2; private long blkNumberEnd_; /** - * optional uint64 blkNumberEnd = 2; + * uint64 blkNumberEnd = 2; */ public long getBlkNumberEnd() { return blkNumberEnd_; @@ -65255,6 +67408,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (blkNumberEnd_ != 0L) { output.writeUInt64(2, blkNumberEnd_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -65270,11 +67424,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, blkNumberEnd_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -65290,6 +67444,7 @@ public boolean equals(final java.lang.Object obj) { == other.getBlkNumberStart()); result = result && (getBlkNumberEnd() == other.getBlkNumberEnd()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -65299,7 +67454,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BLKNUMBERSTART_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlkNumberStart()); @@ -65311,6 +67466,17 @@ public int hashCode() { return hash; } + 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 { @@ -65461,7 +67627,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -65474,12 +67640,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -65499,6 +67665,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockSqlByRange o if (other.getBlkNumberEnd() != 0L) { setBlkNumberEnd(other.getBlkNumberEnd()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -65527,13 +67694,13 @@ public Builder mergeFrom( private long blkNumberStart_ ; /** - * optional uint64 blkNumberStart = 1; + * uint64 blkNumberStart = 1; */ public long getBlkNumberStart() { return blkNumberStart_; } /** - * optional uint64 blkNumberStart = 1; + * uint64 blkNumberStart = 1; */ public Builder setBlkNumberStart(long value) { @@ -65542,7 +67709,7 @@ public Builder setBlkNumberStart(long value) { return this; } /** - * optional uint64 blkNumberStart = 1; + * uint64 blkNumberStart = 1; */ public Builder clearBlkNumberStart() { @@ -65553,13 +67720,13 @@ public Builder clearBlkNumberStart() { private long blkNumberEnd_ ; /** - * optional uint64 blkNumberEnd = 2; + * uint64 blkNumberEnd = 2; */ public long getBlkNumberEnd() { return blkNumberEnd_; } /** - * optional uint64 blkNumberEnd = 2; + * uint64 blkNumberEnd = 2; */ public Builder setBlkNumberEnd(long value) { @@ -65568,7 +67735,7 @@ public Builder setBlkNumberEnd(long value) { return this; } /** - * optional uint64 blkNumberEnd = 2; + * uint64 blkNumberEnd = 2; */ public Builder clearBlkNumberEnd() { @@ -65578,12 +67745,12 @@ public Builder clearBlkNumberEnd() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -65606,7 +67773,7 @@ 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); + return new req_getBlockSqlByRange(input, extensionRegistry); } }; @@ -65660,6 +67827,7 @@ 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); @@ -65671,14 +67839,19 @@ private rsp_getBlockSqlByRange() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -65688,7 +67861,8 @@ private rsp_getBlockSqlByRange( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -65713,6 +67887,7 @@ private rsp_getBlockSqlByRange( if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { blkSql_ = java.util.Collections.unmodifiableList(blkSql_); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -65778,6 +67953,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < blkSql_.size(); i++) { output.writeMessage(1, blkSql_.get(i)); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -65789,11 +67965,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, blkSql_.get(i)); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -65807,6 +67983,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getBlkSqlList() .equals(other.getBlkSqlList()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -65816,7 +67993,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); if (getBlkSqlCount() > 0) { hash = (37 * hash) + BLKSQL_FIELD_NUMBER; hash = (53 * hash) + getBlkSqlList().hashCode(); @@ -65826,6 +68003,17 @@ public int hashCode() { 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_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 { @@ -65987,7 +68175,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -66000,12 +68188,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -66045,6 +68233,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.rsp_getBlockSqlByRange o } } } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -66313,12 +68502,12 @@ public org.aion.api.server.pb.Message.t_BlockSql.Builder addBlkSqlBuilder( } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -66341,7 +68530,7 @@ 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); + return new rsp_getBlockSqlByRange(input, extensionRegistry); } }; @@ -66365,12 +68554,12 @@ public interface req_getBlockDetailsByRangeOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * optional uint64 blkNumberStart = 1; + * uint64 blkNumberStart = 1; */ long getBlkNumberStart(); /** - * optional uint64 blkNumberEnd = 2; + * uint64 blkNumberEnd = 2; */ long getBlkNumberEnd(); } @@ -66381,6 +68570,7 @@ 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); @@ -66393,14 +68583,19 @@ private req_getBlockDetailsByRange() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -66410,7 +68605,8 @@ private req_getBlockDetailsByRange( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -66433,6 +68629,7 @@ private req_getBlockDetailsByRange( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -66451,7 +68648,7 @@ private req_getBlockDetailsByRange( public static final int BLKNUMBERSTART_FIELD_NUMBER = 1; private long blkNumberStart_; /** - * optional uint64 blkNumberStart = 1; + * uint64 blkNumberStart = 1; */ public long getBlkNumberStart() { return blkNumberStart_; @@ -66460,7 +68657,7 @@ public long getBlkNumberStart() { public static final int BLKNUMBEREND_FIELD_NUMBER = 2; private long blkNumberEnd_; /** - * optional uint64 blkNumberEnd = 2; + * uint64 blkNumberEnd = 2; */ public long getBlkNumberEnd() { return blkNumberEnd_; @@ -66484,6 +68681,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (blkNumberEnd_ != 0L) { output.writeUInt64(2, blkNumberEnd_); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -66499,11 +68697,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, blkNumberEnd_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -66519,6 +68717,7 @@ public boolean equals(final java.lang.Object obj) { == other.getBlkNumberStart()); result = result && (getBlkNumberEnd() == other.getBlkNumberEnd()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -66528,7 +68727,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BLKNUMBERSTART_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlkNumberStart()); @@ -66540,6 +68739,17 @@ public int hashCode() { return hash; } + 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 { @@ -66690,7 +68900,7 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( @@ -66703,12 +68913,12 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -66728,6 +68938,7 @@ public Builder mergeFrom(org.aion.api.server.pb.Message.req_getBlockDetailsByRan if (other.getBlkNumberEnd() != 0L) { setBlkNumberEnd(other.getBlkNumberEnd()); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -66756,13 +68967,13 @@ public Builder mergeFrom( private long blkNumberStart_ ; /** - * optional uint64 blkNumberStart = 1; + * uint64 blkNumberStart = 1; */ public long getBlkNumberStart() { return blkNumberStart_; } /** - * optional uint64 blkNumberStart = 1; + * uint64 blkNumberStart = 1; */ public Builder setBlkNumberStart(long value) { @@ -66771,7 +68982,7 @@ public Builder setBlkNumberStart(long value) { return this; } /** - * optional uint64 blkNumberStart = 1; + * uint64 blkNumberStart = 1; */ public Builder clearBlkNumberStart() { @@ -66782,13 +68993,13 @@ public Builder clearBlkNumberStart() { private long blkNumberEnd_ ; /** - * optional uint64 blkNumberEnd = 2; + * uint64 blkNumberEnd = 2; */ public long getBlkNumberEnd() { return blkNumberEnd_; } /** - * optional uint64 blkNumberEnd = 2; + * uint64 blkNumberEnd = 2; */ public Builder setBlkNumberEnd(long value) { @@ -66797,7 +69008,7 @@ public Builder setBlkNumberEnd(long value) { return this; } /** - * optional uint64 blkNumberEnd = 2; + * uint64 blkNumberEnd = 2; */ public Builder clearBlkNumberEnd() { @@ -66807,12 +69018,12 @@ public Builder clearBlkNumberEnd() { } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } @@ -66835,7 +69046,7 @@ 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); + return new req_getBlockDetailsByRange(input, extensionRegistry); } }; @@ -66889,6 +69100,7 @@ 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); @@ -66900,14 +69112,19 @@ private rsp_getBlockDetailsByRange() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + 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) { @@ -66917,7 +69134,8 @@ private rsp_getBlockDetailsByRange( done = true; break; default: { - if (!input.skipField(tag)) { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -66942,6 +69160,7 @@ private rsp_getBlockDetailsByRange( if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { blkDetails_ = java.util.Collections.unmodifiableList(blkDetails_); } + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -67007,6 +69226,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < blkDetails_.size(); i++) { output.writeMessage(1, blkDetails_.get(i)); } + unknownFields.writeTo(output); } public int getSerializedSize() { @@ -67018,11 +69238,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, blkDetails_.get(i)); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -67036,6 +69256,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getBlkDetailsList() .equals(other.getBlkDetailsList()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -67045,7 +69266,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (19 * hash) + getDescriptor().hashCode(); if (getBlkDetailsCount() > 0) { hash = (37 * hash) + BLKDETAILS_FIELD_NUMBER; hash = (53 * hash) + getBlkDetailsList().hashCode(); @@ -67055,6 +69276,17 @@ public int hashCode() { return hash; } + 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 { @@ -67216,7 +69448,1150 @@ public Builder clone() { } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object 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) + } + + // @@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 static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange 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); + } + }; + + 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_getBlockDetailsByRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + 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; + } + + @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; + } + + 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_; + } + + 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_); + } + 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_); + } + 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_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; + } + + @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 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 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); + } + + @java.lang.Override + 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) + } + + // @@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.req_getNonce getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + 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 com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public org.aion.api.server.pb.Message.req_getNonce getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + 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; + } + + @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; + } + + 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 final int NONCE_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString nonce_; + /** + * bytes nonce = 1; + */ + public com.google.protobuf.ByteString getNonce() { + return nonce_; + } + + 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_); + } + 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_); + } + 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 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 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); + } + + 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); + } + + @java.lang.Override + 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( @@ -67229,51 +70604,29 @@ public Builder clearOneof( } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object 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); + 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_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_); - } - } + 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; } @@ -67286,11 +70639,11 @@ 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; + 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_getBlockDetailsByRange) e.getUnfinishedMessage(); + parsedMessage = (org.aion.api.server.pb.Message.rsp_getNonce) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -67299,291 +70652,79 @@ public Builder mergeFrom( } 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; - } + private com.google.protobuf.ByteString nonce_ = com.google.protobuf.ByteString.EMPTY; /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + * bytes nonce = 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; + public com.google.protobuf.ByteString getNonce() { + return nonce_; } /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + * bytes nonce = 1; */ - public Builder clearBlkDetails() { - if (blkDetailsBuilder_ == null) { - blkDetails_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - blkDetailsBuilder_.clear(); - } + public Builder setNonce(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + nonce_ = value; + onChanged(); return this; } /** - * repeated .org.aion.api.server.pb.t_BlockDetail blkDetails = 1; + * bytes nonce = 1; */ - public Builder removeBlkDetails(int index) { - if (blkDetailsBuilder_ == null) { - ensureBlkDetailsIsMutable(); - blkDetails_.remove(index); - onChanged(); - } else { - blkDetailsBuilder_.remove(index); - } + public Builder clearNonce() { + + nonce_ = getDefaultInstance().getNonce(); + onChanged(); 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 this; + return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getBlockDetailsByRange) + // @@protoc_insertion_point(builder_scope:org.aion.api.server.pb.rsp_getNonce) } - // @@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; + // @@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_getBlockDetailsByRange(); + DEFAULT_INSTANCE = new org.aion.api.server.pb.Message.rsp_getNonce(); } - public static org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInstance() { + public static org.aion.api.server.pb.Message.rsp_getNonce getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public rsp_getBlockDetailsByRange parsePartialFrom( + 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_getBlockDetailsByRange(input, extensionRegistry); + return new rsp_getNonce(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } - public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInstanceForType() { + public org.aion.api.server.pb.Message.rsp_getNonce getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -68099,6 +71240,16 @@ public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInsta 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; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -68117,7 +71268,7 @@ public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInsta "\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", + "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" + @@ -68127,7 +71278,7 @@ public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInsta "\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", + "(\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" + @@ -68137,7 +71288,7 @@ public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInsta "\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", + ".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" + @@ -68147,7 +71298,7 @@ public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInsta "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", + "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" + @@ -68157,7 +71308,7 @@ public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInsta "\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", + " \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" + @@ -68167,7 +71318,7 @@ public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInsta "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", + "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" + @@ -68177,7 +71328,7 @@ public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInsta "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", + "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" + @@ -68187,7 +71338,7 @@ public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInsta "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(", + "\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" + @@ -68197,7 +71348,7 @@ public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInsta "\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", + "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" + @@ -68207,7 +71358,7 @@ public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInsta "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", + "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" + @@ -68217,7 +71368,7 @@ public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInsta "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", + "_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" + @@ -68227,7 +71378,7 @@ public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInsta "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\'", + "\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" + @@ -68237,7 +71388,7 @@ public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInsta "\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", + ".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" + @@ -68247,7 +71398,7 @@ public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInsta "_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", + "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" + @@ -68257,7 +71408,7 @@ public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInsta "\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", + "\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" + @@ -68267,7 +71418,7 @@ public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInsta "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.", + "\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" + @@ -68277,7 +71428,7 @@ public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInsta "\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", + "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" + @@ -68287,7 +71438,7 @@ public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInsta "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", + "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" + @@ -68297,7 +71448,7 @@ public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInsta "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", + "\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" + @@ -68307,7 +71458,7 @@ public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInsta "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", + "\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\"" + @@ -68315,49 +71466,51 @@ public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInsta "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*" + - "\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*\245\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*\241\007\n\007Retcode\022\n\n\006r_fail\020\000\022\r" + + "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", + "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" + @@ -68367,7 +71520,7 @@ public org.aion.api.server.pb.Message.rsp_getBlockDetailsByRange getDefaultInsta "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\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" + @@ -69001,6 +72154,18 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( 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", }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/modMcf/build.xml b/modMcf/build.xml index d7e26a798e..1aa1732eb7 100644 --- a/modMcf/build.xml +++ b/modMcf/build.xml @@ -15,6 +15,7 @@ + @@ -39,7 +40,8 @@ - + + @@ -129,11 +131,12 @@ + - + diff --git a/modMcf/module-info.java b/modMcf/module-info.java index 83b9d46360..d902a5bd56 100644 --- a/modMcf/module-info.java +++ b/modMcf/module-info.java @@ -1,6 +1,4 @@ module aion.mcf { - - requires aion.crypto; requires aion.base; requires aion.log; @@ -8,7 +6,7 @@ requires aion.rlp; requires aion.db.impl; requires slf4j.api; - + requires aion.p2p; exports org.aion.mcf.account; exports org.aion.mcf.blockchain; @@ -28,4 +26,4 @@ exports org.aion.mcf.valid; exports org.aion.mcf.vm; exports org.aion.mcf.vm.types; -} \ No newline at end of file +} diff --git a/modMcf/src/org/aion/mcf/account/AccountManager.java b/modMcf/src/org/aion/mcf/account/AccountManager.java index 8d75fc2c3c..88f098f907 100644 --- a/modMcf/src/org/aion/mcf/account/AccountManager.java +++ b/modMcf/src/org/aion/mcf/account/AccountManager.java @@ -1,4 +1,5 @@ -/******************************************************************************* +/* + ****************************************************************************** * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -17,36 +18,44 @@ * 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: + * 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.account; import java.time.Instant; +import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Optional; -import java.util.stream.Collectors; - import org.aion.base.type.Address; import org.aion.crypto.ECKey; import org.aion.log.AionLoggerFactory; import org.aion.log.LogEnum; import org.slf4j.Logger; -/** - * Account Manger Class - */ +/** Account Manger Class */ public class AccountManager { private static final Logger LOGGER = AionLoggerFactory.getLogger(LogEnum.API.name()); private static final int UNLOCK_MAX = 86400, // sec UNLOCK_DEFAULT = 60; // sec - private Map accounts = null; + private Map accounts; private AccountManager() { LOGGER.debug(""); @@ -80,23 +89,23 @@ public ECKey getKey(final Address _address) { } public List getAccounts() { - return this.accounts.values().stream().collect(Collectors.toList()); + return new ArrayList<>(this.accounts.values()); } public boolean unlockAccount(Address _address, String _password, int _timeout) { - int timeout = UNLOCK_DEFAULT; - if (_timeout > UNLOCK_MAX) { - timeout = UNLOCK_MAX; - } else if (_timeout > 0) { - timeout = _timeout; - } - ECKey key = Keystore.getKey(_address.toString(), _password); if (Optional.ofNullable(key).isPresent()) { Account acc = this.accounts.get(_address); + int timeout = UNLOCK_DEFAULT; + if (_timeout > UNLOCK_MAX) { + timeout = UNLOCK_MAX; + } else if (_timeout > 0) { + timeout = _timeout; + } + long t = Instant.now().getEpochSecond() + timeout; if (Optional.ofNullable(acc).isPresent()) { acc.updateTimeout(t); @@ -105,10 +114,14 @@ public boolean unlockAccount(Address _address, String _password, int _timeout) { this.accounts.put(_address, a); } - LOGGER.debug("", _address); + if (LOGGER.isDebugEnabled()) { + LOGGER.debug("", _address); + } return true; } else { - LOGGER.debug("", _address); + if (LOGGER.isDebugEnabled()) { + LOGGER.debug("", _address); + } return false; } } @@ -124,10 +137,14 @@ public boolean lockAccount(Address _address, String _password) { acc.updateTimeout(Instant.now().getEpochSecond() - 1); } - LOGGER.debug("", _address); + if (LOGGER.isDebugEnabled()) { + LOGGER.debug("", _address); + } return true; } else { - LOGGER.debug("", _address); + if (LOGGER.isDebugEnabled()) { + LOGGER.debug("", _address); + } return false; } } diff --git a/modMcf/src/org/aion/mcf/account/Keystore.java b/modMcf/src/org/aion/mcf/account/Keystore.java index 4148c6ef1a..f4b137a2fb 100644 --- a/modMcf/src/org/aion/mcf/account/Keystore.java +++ b/modMcf/src/org/aion/mcf/account/Keystore.java @@ -1,23 +1,39 @@ -/******************************************************************************* +/* + ****************************************************************************** + * 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.account; import java.io.File; @@ -33,8 +49,9 @@ import java.text.SimpleDateFormat; import java.util.*; import java.util.HashMap; +import java.util.regex.Matcher; +import java.util.regex.Pattern; import java.util.stream.Collectors; - import org.aion.base.type.Address; import org.aion.base.util.*; import org.aion.crypto.ECKey; @@ -43,15 +60,17 @@ import org.aion.log.LogEnum; import org.slf4j.Logger; -/** - * key store class. - */ +/** key store class. */ 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 List getFiles() { File[] files = PATH.toFile().listFiles(); @@ -71,34 +90,31 @@ public static String create(String password, ECKey key) { try { Files.createDirectory(PATH, attr); } catch (IOException e) { - LOG.debug("keystore folder create failed!"); + LOG.error("keystore folder create failed!"); return ""; } } String address = ByteUtil.toHexString(key.getAddress()); if (exist(address)) { - return "0x"; + return ADDR_PREFIX; } else { - KeystoreFormat format = new KeystoreFormat(); - byte[] content = format.toKeystore(key, password); - TimeZone tz = TimeZone.getTimeZone("UTC"); + byte[] content = new KeystoreFormat().toKeystore(key, password); DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); - df.setTimeZone(tz); + df.setTimeZone(TimeZone.getTimeZone("UTC")); String iso_date = df.format(new Date(System.currentTimeMillis())); String fileName = "UTC--" + iso_date + "--" + address; try { Path keyFile = PATH.resolve(fileName); - if (!Files.exists(keyFile)) - keyFile = Files.createFile(keyFile, attr); + if (!Files.exists(keyFile)) keyFile = Files.createFile(keyFile, attr); String path = keyFile.toString(); FileOutputStream fos = new FileOutputStream(path); fos.write(content); fos.close(); return TypeConverter.toJsonHex(address); } catch (IOException e) { - LOG.debug("fail to create keystore"); - return "0x"; + LOG.error("fail to create keystore"); + return ADDR_PREFIX; } } } @@ -132,23 +148,39 @@ public static Map backupAccount(Map return new java.util.HashMap<>(); } - List matchedFile = files.parallelStream().filter(file -> account.entrySet().parallelStream() - .filter(ac -> file.getName().contains(ac.getKey().toString())).findFirst().isPresent()) - .collect(Collectors.toList()); + List matchedFile = + files.parallelStream() + .filter( + file -> + account.entrySet() + .parallelStream() + .anyMatch( + ac -> + file.getName() + .contains( + ac.getKey() + .toString()))) + .collect(Collectors.toList()); Map res = new HashMap<>(); for (File file : matchedFile) { try { String[] frags = file.getName().split("--"); if (frags.length == 3) { - Address addr = Address.wrap(frags[2]); - byte[] content = Files.readAllBytes(file.toPath()); - - String pw = account.get(addr); - if (pw != null) { - ECKey key = KeystoreFormat.fromKeystore(content, pw); - if (key != null) { - res.put(addr, ByteArrayWrapper.wrap(content)); + if (frags[2].startsWith(AION_PREFIX)) { + Address addr = Address.wrap(frags[2]); + byte[] content = Files.readAllBytes(file.toPath()); + + String pw = account.get(addr); + if (pw != null) { + ECKey key = KeystoreFormat.fromKeystore(content, pw); + if (key != null) { + res.put(addr, ByteArrayWrapper.wrap(content)); + } + } + } else { + if (LOG.isDebugEnabled()) { + LOG.debug("Wrong address format: {}", frags[2]); } } } @@ -161,69 +193,81 @@ public static Map backupAccount(Map } public static String[] list() { - List addresses = new ArrayList<>(); - List files = getFiles(); + return addAddrs(getFiles()).toArray(new String[0]); + } - files.forEach((file) -> { - String[] frags = file.getName().split("--"); - if (frags.length == 3) { - addresses.add(TypeConverter.toJsonHex(frags[2])); - } - }); - return addresses.toArray(new String[addresses.size()]); + private static List addAddrs(List files) { + List addresses = new ArrayList<>(); + files.forEach( + (file) -> { + String[] frags = file.getName().split("--"); + if (frags.length == 3) { + if (frags[2].startsWith(AION_PREFIX)) { + addresses.add(TypeConverter.toJsonHex(frags[2])); + } else { + if (LOG.isDebugEnabled()) { + LOG.debug("Wrong address format: {}", frags[2]); + } + } + } + }); + return addresses; } /** * Returns a sorted list of account addresses * - * @return + * @return address represent by String as a List */ public static List accountsSorted() { - List addresses = new ArrayList<>(); List files = getFiles(); - files.sort(COMPARE); - - files.forEach((file) -> { - String[] frags = file.getName().split("--"); - if (frags.length == 3) { - addresses.add(TypeConverter.toJsonHex(frags[2])); - } - }); - return addresses; + return addAddrs(files); } public static ECKey getKey(String _address, String _password) { - if (_address.startsWith("0x")) { + if (_address.startsWith(ADDR_PREFIX)) { _address = _address.substring(2); } + ECKey key = null; - List files = getFiles(); - for (File file : files) { - if (file.getName().contains(_address)) { - try { - byte[] content = Files.readAllBytes(file.toPath()); - key = KeystoreFormat.fromKeystore(content, _password); - - } catch (IOException e) { - key = null; + if (_address.startsWith(AION_PREFIX)) { + List files = getFiles(); + for (File file : files) { + if (HEX_64.matcher(_address).find() && file.getName().contains(_address)) { + try { + byte[] content = Files.readAllBytes(file.toPath()); + key = KeystoreFormat.fromKeystore(content, _password); + + } catch (IOException e) { + LOG.error("getKey exception! {}", e); + } + break; } - break; } } return key; } + /** + * Returns true if the address _address exists, false otherwise. + * + * @param _address the address whose existence is to be tested. + * @return true only if _address exists. + */ public static boolean exist(String _address) { - if (_address.startsWith("0x")) { + if (_address.startsWith(ADDR_PREFIX)) { _address = _address.substring(2); } - List files = getFiles(); + boolean flag = false; - for (File file : files) { - if (file.getName().contains(_address)) { - flag = true; - break; + if (_address.startsWith(AION_PREFIX)) { + List files = getFiles(); + for (File file : files) { + if (HEX_64.matcher(_address).find() && file.getName().contains(_address)) { + flag = true; + break; + } } } return flag; @@ -237,24 +281,31 @@ public static Set importAccount(Map importKey) { Set rtn = new HashSet<>(); int count = 0; for (Map.Entry keySet : importKey.entrySet()) { - if (count < 100) { - byte[] raw = Hex - .decode(keySet.getKey().startsWith("0x") ? keySet.getKey().substring(2) : keySet.getKey()); - ECKey key = KeystoreFormat.fromKeystore(raw, keySet.getValue()); - String address = Keystore.create(keySet.getValue(), key); - if (!address.equals("0x")) { - if (LOG.isDebugEnabled()) { - LOG.debug("The private key was imported, the address is: {}", address); - } - - } else { - if (LOG.isErrorEnabled()) { - LOG.error("Failed to import the private key. Already exists?"); + if (count < IMPORT_LIMIT) { + ECKey key = + KeystoreFormat.fromKeystore(Hex.decode(keySet.getKey()), keySet.getValue()); + if (key != null) { + String address = Keystore.create(keySet.getValue(), key); + if (!address.equals(ADDR_PREFIX)) { + if (LOG.isDebugEnabled()) { + LOG.debug( + "The private key was imported, the address is {}", + keySet.getKey()); + } + } else { + LOG.error( + "Failed to import the private key {}. Already exists?", + keySet.getKey()); + // only return the failed import privateKey. + rtn.add(keySet.getKey()); } - // only return the failed import privateKey. - rtn.add(keySet.getKey()); } } else { + if (LOG.isDebugEnabled()) { + LOG.debug( + "The account import limit was reached, the address didn't import into keystore {}", + keySet.getKey()); + } rtn.add(keySet.getKey()); } count++; @@ -262,4 +313,35 @@ public static Set importAccount(Map importKey) { return rtn; } + + /* + * Test method. Don't use it for the code dev. + */ + protected static File getAccountFile(String address, String password) { + List files = getFiles(); + if (files == null) { + if (LOG.isWarnEnabled()) { + LOG.warn("No key file been stored in the kernel."); + } + return null; + } + + Optional matchedFile = + files.parallelStream().filter(file -> file.getName().contains(address)).findFirst(); + + if (matchedFile.isPresent()) { + byte[] content = new byte[0]; + try { + content = Files.readAllBytes(matchedFile.get().toPath()); + } catch (IOException e) { + e.printStackTrace(); + } + + if (null != KeystoreFormat.fromKeystore(content, password)) { + return matchedFile.get(); + } + } + + return null; + } } diff --git a/modAionImpl/src/org/aion/zero/impl/tx/AbstractTxTask.java b/modMcf/src/org/aion/mcf/tx/AbstractTxTask.java similarity index 81% rename from modAionImpl/src/org/aion/zero/impl/tx/AbstractTxTask.java rename to modMcf/src/org/aion/mcf/tx/AbstractTxTask.java index 0934a573ef..37fb6b0c3b 100644 --- a/modAionImpl/src/org/aion/zero/impl/tx/AbstractTxTask.java +++ b/modMcf/src/org/aion/mcf/tx/AbstractTxTask.java @@ -1,4 +1,4 @@ -/******************************************************************************* +/* ****************************************************************************** * Copyright (c) 2017-2018 Aion foundation. * * This file is part of the aion network project. @@ -19,20 +19,18 @@ * * Contributors: * Aion foundation. - * + * ******************************************************************************/ - -package org.aion.zero.impl.tx; +package org.aion.mcf.tx; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.concurrent.Callable; - import org.aion.base.type.ITransaction; import org.aion.p2p.INode; import org.aion.p2p.IP2pMgr; -import org.aion.zero.impl.sync.msg.BroadcastTx; +import org.aion.p2p.Msg; /** * @author jin @@ -41,33 +39,35 @@ // public abstract class AbstractTxTask implements Callable> // { -public abstract class AbstractTxTask implements Callable> { +public abstract class AbstractTxTask + implements Callable> { protected final List tx; protected final P2P p2pMgr; + protected final Msg msg; - public AbstractTxTask(TX _tx, P2P _p2pMgr) { + public AbstractTxTask(TX _tx, P2P _p2pMgr, Msg _msg) { this.tx = Collections.singletonList(_tx); this.p2pMgr = _p2pMgr; + this.msg = _msg; } - public AbstractTxTask(List _tx, P2P _p2pMgr) { + public AbstractTxTask(List _tx, P2P _p2pMgr, Msg _msg) { this.tx = _tx; this.p2pMgr = _p2pMgr; + this.msg = _msg; } - /** - * Class fails silently - */ + /** Class fails silently */ @SuppressWarnings("unchecked") @Override public List call() throws Exception { try { Map activeNodes = this.p2pMgr.getActiveNodes(); - if (activeNodes != null && !activeNodes.isEmpty()) { + if (activeNodes != null) { for (Map.Entry e : activeNodes.entrySet()) { - this.p2pMgr.send(e.getKey(), e.getValue().getIdShort(), new BroadcastTx((List) this.tx)); + this.p2pMgr.send(e.getKey(), e.getValue().getIdShort(), this.msg); } } diff --git a/modMcf/test/org/aion/mcf/account/FileDateTimeComparatorTest.java b/modMcf/test/org/aion/mcf/account/FileDateTimeComparatorTest.java index 31fa464950..b584ef7386 100644 --- a/modMcf/test/org/aion/mcf/account/FileDateTimeComparatorTest.java +++ b/modMcf/test/org/aion/mcf/account/FileDateTimeComparatorTest.java @@ -1,3 +1,39 @@ +/* + ****************************************************************************** + * 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. + * 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.account; import static org.hamcrest.Matchers.equalTo; @@ -12,13 +48,13 @@ import java.util.Date; import java.util.List; import java.util.TimeZone; - import org.junit.Test; public class FileDateTimeComparatorTest { - + /** * Generates a list that should go from latest date to earliest + * * @return */ public static List generateValidFiles() { @@ -32,10 +68,10 @@ public static List generateValidFiles() { String fileName = "UTC--" + iso_date + "--" + "blah"; nameList.add(new File(fileName)); } - + return nameList; } - + @Test public void testComparator() { List l = generateValidFiles(); @@ -45,7 +81,7 @@ public void testComparator() { for (int i = (l.size() - 1); i >= 0; i--) { expectedFileNames.add(l.get(i).getName()); } - + // note: this will fail if we use a odd number of files! for (int i = 0; i < l.size(); i++) { assertThat(l.get(i).getName(), is(not(equalTo(expectedFileNames.get(i))))); @@ -57,44 +93,44 @@ public void testComparator() { assertThat(l.get(i).getName(), is(equalTo(expectedFileNames.get(i)))); } } - + /** - * Throw in some garbage files Expected behaviour is that these garbage - * files get moved to the back + * Throw in some garbage files Expected behaviour is that these garbage files get moved to the + * back */ @Test public void testComparatorWithGarbage() { List l = generateValidFiles(); - + List expectedFileNames = new ArrayList(); - + for (int i = (l.size() - 1); i >= 0; i--) { expectedFileNames.add(l.get(i).getName()); } - + File garbageFile1 = new File("blargh"); File garbageFile2 = new File("UTC--cats--blah"); File garbageFile3 = null; - + l.add(5, garbageFile1); l.add(6, garbageFile2); l.add(7, garbageFile3); - + expectedFileNames.add(garbageFile2.getName()); expectedFileNames.add(garbageFile1.getName()); expectedFileNames.add(null); - + l.sort(new FileDateTimeComparator()); - - System.out.println("l size: " + l.size() + " expectedFileName size: " + expectedFileNames.size()); - + + System.out.println( + "l size: " + l.size() + " expectedFileName size: " + expectedFileNames.size()); + for (int i = 0; i < l.size(); i++) { - if(l.get(i) != null) { + if (l.get(i) != null) { String a = l.get(i).getName(); String b = expectedFileNames.get(i); assertThat(a, is(equalTo(b))); } } } - } diff --git a/modMcf/test/org/aion/mcf/account/KeystoreTest.java b/modMcf/test/org/aion/mcf/account/KeystoreTest.java index 7a041d0d7f..0c9d21cb4d 100644 --- a/modMcf/test/org/aion/mcf/account/KeystoreTest.java +++ b/modMcf/test/org/aion/mcf/account/KeystoreTest.java @@ -1,10 +1,55 @@ +/* + ****************************************************************************** + * 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. + * 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.account; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertTrue; +import java.io.File; +import java.io.IOException; +import java.nio.file.Files; +import java.util.HashMap; +import java.util.Map; import java.util.Random; - +import org.aion.base.type.Address; +import org.aion.base.util.ByteArrayWrapper; +import org.aion.base.util.ByteUtil; import org.aion.crypto.ECKey; import org.aion.crypto.ECKeyFac; import org.junit.Before; @@ -12,13 +57,12 @@ public class KeystoreTest { - public static String randomPassword(int length) { + private static String randomPassword() { Random rand = new Random(); - StringBuffer sb = new StringBuffer(length); - while (sb.length() < length) { + StringBuilder sb = new StringBuilder(10); + while (sb.length() < 10) { char c = (char) (rand.nextInt() & Character.MAX_VALUE); - if (Character.isDefined(c)) - sb.append(c); + if (Character.isDefined(c)) sb.append(c); } return sb.toString(); } @@ -31,13 +75,124 @@ public void init() { @Test public void keyCreateAndRetrieve() { - String password = randomPassword(10); + String password = randomPassword(); + String address = Keystore.create(password); + assertNotNull(address); + assertEquals(address.length(), 2 + 64); + System.out.println("new addr: " + address); + ECKey key = Keystore.getKey(address, password); + assertNotNull(key); + } + + @Test + public void keyCreateAndRetrieve2() { + String password = randomPassword(); + String address = Keystore.create(password); + assertNotNull(address); + assertEquals(address.length(), 2 + 64); + System.out.println("new addr: " + address); + ECKey key = Keystore.getKey(address, password); + assertNotNull(key); + assertEquals("0x", (Keystore.create(password, key))); + } + + @Test + public void testKeyCreate() { + String password = randomPassword(); + ECKey key = ECKeyFac.inst().create(); + assertNotNull(key); + + String addr = Keystore.create(password, key); + assertEquals(addr.substring(2), ByteUtil.toHexString(key.getAddress())); + } + + @Test + public void testKeyExist() { + String password = randomPassword(); String address = Keystore.create(password); assertNotNull(address); assertEquals(address.length(), 2 + 64); System.out.println("new addr: " + address); ECKey key = Keystore.getKey(address, password); assertNotNull(key); + assertTrue(Keystore.exist(address)); + } + + @Test + public void testWrongAddress() { + String wAddr = "0xb000000000000000000000000000000000000000000000000000000000000000"; + assertFalse(Keystore.exist(wAddr)); + + String wAddr1 = "0x0000000000000000000000000000000000000000000000000000000000000000"; + assertFalse(Keystore.exist(wAddr1)); + } + + @Test + public void testAccountExport() { + String password = randomPassword(); + ECKey key = ECKeyFac.inst().create(); + assertNotNull(key); + + String addr = Keystore.create(password, key); + assertEquals(addr.substring(2), ByteUtil.toHexString(key.getAddress())); + + Map arg = new HashMap<>(); + arg.put(Address.wrap(addr), password); + + Map export = Keystore.exportAccount(arg); + + assertTrue(export.containsKey(Address.wrap(addr))); + assertTrue(export.containsValue(ByteArrayWrapper.wrap(key.getPrivKeyBytes()))); + } + + @Test + public void testAccountBackup() { + String password = randomPassword(); + ECKey key = ECKeyFac.inst().create(); + assertNotNull(key); + + String addr = Keystore.create(password, key); + assertEquals(addr.substring(2), ByteUtil.toHexString(key.getAddress())); + + Map arg = new HashMap<>(); + arg.put(Address.wrap(addr), password); + + Map export = Keystore.backupAccount(arg); + + assertNotNull(export); + + File f = Keystore.getAccountFile(addr.substring(2), password); + assertNotNull(f); + + assertTrue(export.containsKey(Address.wrap(addr))); + try { + assertTrue(export.containsValue(ByteArrayWrapper.wrap(Files.readAllBytes(f.toPath())))); + } catch (IOException e) { + e.printStackTrace(); + } + } + + @Test + public void testList() { + String password = randomPassword(); + ECKey key = ECKeyFac.inst().create(); + assertNotNull(key); + + String addr = Keystore.create(password, key); + assertEquals(addr.substring(2), ByteUtil.toHexString(key.getAddress())); + + String[] addrList = Keystore.list(); + + assertNotNull(addrList); + + boolean hasAddr = false; + for (String s : addrList) { + if (s.equals(addr)) { + hasAddr = true; + break; + } + } + assertTrue(hasAddr); } } diff --git a/modP2p/src/org/aion/p2p/Header.java b/modP2p/src/org/aion/p2p/Header.java index 15e81fe23d..f0fe87a8a8 100644 --- a/modP2p/src/org/aion/p2p/Header.java +++ b/modP2p/src/org/aion/p2p/Header.java @@ -28,29 +28,22 @@ import java.io.IOException; import java.nio.ByteBuffer; - -/** - * @author chris - */ +/** @author chris */ public final class Header { - public final static int LEN = 8; + public static final int LEN = 8; - private final static int MAX_BODY_LEN_BYTES = P2pConstant.MAX_BODY_SIZE; + private static final int MAX_BODY_LEN_BYTES = P2pConstant.MAX_BODY_SIZE; private final short ver; private final byte ctrl; private final byte action; private int len; /** - * @param _ver - * short - * @param _ctrl - * byte - * @param _action - * byte - * @param _len - * byte + * @param _ver short + * @param _ctrl byte + * @param _action byte + * @param _len byte */ Header(short _ver, byte _ctrl, byte _action, int _len) { this.ver = _ver; @@ -59,37 +52,27 @@ public final class Header { this.len = _len < 0 ? 0 : _len; } - /** - * @return short - */ + /** @return short */ public short getVer() { return this.ver; } - /** - * @return byte - */ + /** @return byte */ public byte getCtrl() { return this.ctrl; } - /** - * @return byte - */ + /** @return byte */ public byte getAction() { return this.action; } - /** - * @return int - */ + /** @return int */ public int getRoute() { return (ver << 16) | (ctrl << 8) | action; } - /** - * @return int - */ + /** @return int */ public int getLen() { return this.len; } @@ -98,19 +81,15 @@ public void setLen(int _len) { this.len = _len; } - /** - * @return byte[] - */ + /** @return byte[] */ public byte[] encode() { return ByteBuffer.allocate(LEN).putInt(this.getRoute()).putInt(len).array(); } /** - * @param _headerBytes - * byte[] + * @param _headerBytes byte[] * @return Header - * @throws IOException - * when exeeds MAX_BODY_LEN_BYTES + * @throws IOException when exeeds MAX_BODY_LEN_BYTES */ public static Header decode(final byte[] _headerBytes) throws IOException { if (_headerBytes == null || _headerBytes.length != LEN) @@ -121,9 +100,8 @@ public static Header decode(final byte[] _headerBytes) throws IOException { byte ctrl = bb1.get(); byte action = bb1.get(); int len = bb1.getInt(); - if (len > MAX_BODY_LEN_BYTES) - throw new IOException("exceed-max-body-size"); + if (len > MAX_BODY_LEN_BYTES) throw new IOException("exceed-max-body-size"); return new Header(ver, ctrl, action, len); } } -} \ No newline at end of file +} diff --git a/modP2p/src/org/aion/p2p/Msg.java b/modP2p/src/org/aion/p2p/Msg.java index 6d82c4a648..3ed62aa345 100644 --- a/modP2p/src/org/aion/p2p/Msg.java +++ b/modP2p/src/org/aion/p2p/Msg.java @@ -47,12 +47,14 @@ public Msg(short _ver, byte _ctrl, byte _act){ /** * @return Header */ - public Header getHeader(){ + public Header getHeader() { return this.header; } /** - * @return byte[] + * Returns byte array encoding of message. + * + * @return */ public abstract byte[] encode(); diff --git a/modP2pImpl/module-info.java b/modP2pImpl/module-info.java index 024fbc8b45..06129eb24d 100644 --- a/modP2pImpl/module-info.java +++ b/modP2pImpl/module-info.java @@ -1,6 +1,8 @@ module aion.p2p.impl { - requires aion.p2p; - requires aion.base; - requires miniupnpc.linux; - exports org.aion.p2p.impl1; -} \ No newline at end of file + requires aion.p2p; + requires aion.base; + requires miniupnpc.linux; + + exports org.aion.p2p.impl1; + exports org.aion.p2p.impl.zero.msg; +} diff --git a/modP2pImpl/src/org/aion/p2p/impl/zero/msg/ResHandshake1.java b/modP2pImpl/src/org/aion/p2p/impl/zero/msg/ResHandshake1.java index 81a907a0f6..823b6574be 100644 --- a/modP2pImpl/src/org/aion/p2p/impl/zero/msg/ResHandshake1.java +++ b/modP2pImpl/src/org/aion/p2p/impl/zero/msg/ResHandshake1.java @@ -29,11 +29,7 @@ import java.nio.ByteBuffer; import java.util.Arrays; -/** - * - * @author chris - * - */ +/** @author chris */ public final class ResHandshake1 extends ResHandshake { // success(byte) + binary version len (byte) @@ -43,20 +39,19 @@ public final class ResHandshake1 extends ResHandshake { public ResHandshake1(boolean _success, String _binaryVersion) { super(_success); - // utf-8 - this.binaryVersion = _binaryVersion.length() > 63 ? _binaryVersion.substring(0, 62) : _binaryVersion; - } - - public String getBinaryVersion() { - return this.binaryVersion; + // utf-8 - Max 4 bytes per character + // Since we are restricting the max byte length to 127, + // we will restrict this to under 32 + this.binaryVersion = + _binaryVersion.length() > 31 ? _binaryVersion.substring(0, 31) : _binaryVersion; } public static ResHandshake1 decode(final byte[] _bytes) { - if (_bytes == null || _bytes.length < MIN_LEN) + if (_bytes == null || _bytes.length < MIN_LEN) { return null; - else { + } else { - try{ + try { // decode success boolean success = _bytes[0] == 0x00 ? false : true; @@ -65,12 +60,12 @@ public static ResHandshake1 decode(final byte[] _bytes) { byte len = _bytes[1]; String binaryVersion = "unknown"; int binaryVersionBytesLen = _bytes.length; - if(len > 0 && binaryVersionBytesLen >= MIN_LEN + len){ + if (len > 0 && binaryVersionBytesLen >= MIN_LEN + len) { byte[] binaryVersionBytes = Arrays.copyOfRange(_bytes, MIN_LEN, MIN_LEN + len); - try{ + try { binaryVersion = new String(binaryVersionBytes, "UTF-8"); } catch (UnsupportedEncodingException e) { - + System.out.println(""); } } return new ResHandshake1(_bytes[0] == 0x01, binaryVersion); @@ -82,18 +77,34 @@ public static ResHandshake1 decode(final byte[] _bytes) { } } + public String getBinaryVersion() { + return this.binaryVersion; + } + @Override public byte[] encode() { byte[] superBytes = super.encode(); - byte[] binaryVersionBytes = this.binaryVersion.getBytes(); + byte[] binaryVersionBytes = new byte[0]; + try { + binaryVersionBytes = this.binaryVersion.getBytes("UTF-8"); + } catch (UnsupportedEncodingException e) { + System.out.println(""); + } + int len = binaryVersionBytes.length; - if(len > Byte.MAX_VALUE){ - binaryVersionBytes = Arrays.copyOfRange(binaryVersionBytes, 0 , Byte.MAX_VALUE - 1); + if (len > Byte.MAX_VALUE) { + binaryVersionBytes = Arrays.copyOfRange(binaryVersionBytes, 0, Byte.MAX_VALUE); len = Byte.MAX_VALUE; + // Update the Version + try { + this.binaryVersion = new String(binaryVersionBytes, "UTF-8"); + } catch (UnsupportedEncodingException e) { + System.out.println(""); + } } ByteBuffer buf = ByteBuffer.allocate(superBytes.length + 1 + len); buf.put(superBytes); - buf.put((byte)len); + buf.put((byte) len); buf.put(binaryVersionBytes); return buf.array(); } diff --git a/modP2pImpl/src/org/aion/p2p/impl1/TaskWrite.java b/modP2pImpl/src/org/aion/p2p/impl1/TaskWrite.java index 6f6b673f04..126ffdd557 100644 --- a/modP2pImpl/src/org/aion/p2p/impl1/TaskWrite.java +++ b/modP2pImpl/src/org/aion/p2p/impl1/TaskWrite.java @@ -25,16 +25,14 @@ package org.aion.p2p.impl1; -import org.aion.p2p.Header; -import org.aion.p2p.Msg; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.channels.ClosedChannelException; import java.nio.channels.SocketChannel; +import org.aion.p2p.Header; +import org.aion.p2p.Msg; -/** - * @author chris - */ +/** @author chris */ public class TaskWrite implements Runnable { private boolean showLog; @@ -44,7 +42,13 @@ public class TaskWrite implements Runnable { private ChannelBuffer channelBuffer; private P2pMgr p2pMgr; - TaskWrite(boolean _showLog, String _nodeShortId, final SocketChannel _sc, final Msg _msg, final ChannelBuffer _cb, final P2pMgr _p2pMgr) { + TaskWrite( + boolean _showLog, + String _nodeShortId, + final SocketChannel _sc, + final Msg _msg, + final ChannelBuffer _cb, + final P2pMgr _p2pMgr) { this.showLog = _showLog; this.nodeShortId = _nodeShortId; this.sc = _sc; @@ -79,26 +83,31 @@ 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 { while (buf.hasRemaining()) { - // @Attention: very important sleep , otherwise when NIO write buffer full, + // @Attention: very important sleep , otherwise when NIO write buffer full, // without sleep will hangup this thread. Thread.sleep(0, 1); sc.write(buf); } } catch (ClosedChannelException ex1) { if (showLog) { - System.out.println(""); + System.out.println( + ""); } channelBuffer.isClosed.set(true); } catch (IOException ex2) { String reason = ex2.getMessage(); if (showLog) { - System.out.println(""); + System.out.println( + ""); } if (reason.equals("Broken pipe")) { channelBuffer.isClosed.set(true); @@ -110,4 +119,4 @@ public void run() { channelBuffer.lock.unlock(); } } -} \ No newline at end of file +} diff --git a/modP2pImpl/src/org/aion/p2p/impl2/TaskWrite.java b/modP2pImpl/src/org/aion/p2p/impl2/TaskWrite.java index d29fdb33b7..fd1cf5522e 100644 --- a/modP2pImpl/src/org/aion/p2p/impl2/TaskWrite.java +++ b/modP2pImpl/src/org/aion/p2p/impl2/TaskWrite.java @@ -25,59 +25,60 @@ package org.aion.p2p.impl2; -import org.aion.p2p.Header; -import org.aion.p2p.Msg; -import org.aion.p2p.impl2.selector.MainIOLoop; - import java.nio.ByteBuffer; import java.nio.channels.SocketChannel; import java.util.concurrent.ExecutorService; +import org.aion.p2p.Header; +import org.aion.p2p.Msg; +import org.aion.p2p.impl2.selector.MainIOLoop; -/** - * @author chris - */ +/** @author chris */ public class TaskWrite implements Runnable { - private MainIOLoop ioLoop; - private boolean showLog; - private String nodeShortId; - private SocketChannel sc; - private Msg msg; + private MainIOLoop ioLoop; + private boolean showLog; + private String nodeShortId; + private SocketChannel sc; + private Msg msg; - TaskWrite(final MainIOLoop ioLoop, final ExecutorService worker, boolean _showLog, String _nodeShortId, - final SocketChannel _sc, final Msg _msg) { - this.ioLoop = ioLoop; - this.showLog = _showLog; - this.nodeShortId = _nodeShortId; - this.sc = _sc; - this.msg = _msg; - } + TaskWrite( + final MainIOLoop ioLoop, + final ExecutorService worker, + boolean _showLog, + String _nodeShortId, + final SocketChannel _sc, + final Msg _msg) { + this.ioLoop = ioLoop; + this.showLog = _showLog; + this.nodeShortId = _nodeShortId; + this.sc = _sc; + this.msg = _msg; + } - @Override - public void run() { - /* - * @warning header set len (body len) before header encode - */ - try { - byte[] bodyBytes = msg.encode(); - int bodyLen = bodyBytes == null ? 0 : bodyBytes.length; - Header h = msg.getHeader(); - h.setLen(bodyLen); - byte[] headerBytes = h.encode(); + @Override + public void run() { + /* + * @warning header set len (body len) before header encode + */ + try { + byte[] bodyBytes = msg.encode(); + int bodyLen = bodyBytes == null ? 0 : bodyBytes.length; + Header h = msg.getHeader(); + h.setLen(bodyLen); + byte[] headerBytes = h.encode(); - // print route - // 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); - buf.flip(); + // print route + // 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); + buf.flip(); - // send outbound event to ioLoop for I/O - this.ioLoop.write(buf, this.sc); - } catch (Throwable e) { - System.out.println("" + e.toString()); - } - } + // send outbound event to ioLoop for I/O + this.ioLoop.write(buf, this.sc); + } catch (Throwable e) { + System.out.println("" + e.toString()); + } + } } diff --git a/modP2pImpl/test/org/aion/p2p/impl/zero/msg/ReqActiveNodesTest.java b/modP2pImpl/test/org/aion/p2p/impl/zero/msg/ReqActiveNodesTest.java index 780adc7cc3..48df1b0d04 100644 --- a/modP2pImpl/test/org/aion/p2p/impl/zero/msg/ReqActiveNodesTest.java +++ b/modP2pImpl/test/org/aion/p2p/impl/zero/msg/ReqActiveNodesTest.java @@ -26,6 +26,7 @@ package org.aion.p2p.impl.zero.msg; import org.aion.p2p.Ctrl; +import org.aion.p2p.Msg; import org.aion.p2p.Ver; import org.aion.p2p.impl.comm.Act; import org.junit.Test; 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 6727722818..f25963ac5e 100644 --- a/modP2pImpl/test/org/aion/p2p/impl/zero/msg/ReqHandshake1Test.java +++ b/modP2pImpl/test/org/aion/p2p/impl/zero/msg/ReqHandshake1Test.java @@ -32,6 +32,7 @@ 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; diff --git a/modP2pImpl/test/org/aion/p2p/impl/zero/msg/ResHandshake1Test.java b/modP2pImpl/test/org/aion/p2p/impl/zero/msg/ResHandshake1Test.java index 0e72387885..f0de653134 100644 --- a/modP2pImpl/test/org/aion/p2p/impl/zero/msg/ResHandshake1Test.java +++ b/modP2pImpl/test/org/aion/p2p/impl/zero/msg/ResHandshake1Test.java @@ -25,19 +25,16 @@ package org.aion.p2p.impl.zero.msg; +import static org.junit.Assert.assertEquals; + +import java.io.UnsupportedEncodingException; +import java.util.concurrent.ThreadLocalRandom; import org.aion.p2p.Ctrl; import org.aion.p2p.Ver; import org.aion.p2p.impl.comm.Act; import org.junit.Test; -import java.io.UnsupportedEncodingException; -import java.util.concurrent.ThreadLocalRandom; - -import static org.junit.Assert.assertEquals; - -/** - * @author chris - */ +/** @author chris */ public class ResHandshake1Test { @Test @@ -47,7 +44,9 @@ public void test() throws UnsupportedEncodingException { byte[] randomBytes = new byte[200]; ThreadLocalRandom.current().nextBytes(randomBytes); String randomBinaryVersion = new String(randomBytes, "UTF-8"); - ResHandshake1 rh1 = new ResHandshake1(ThreadLocalRandom.current().nextBoolean(), randomBinaryVersion); + + ResHandshake1 rh1 = + new ResHandshake1(ThreadLocalRandom.current().nextBoolean(), randomBinaryVersion); // test route assertEquals(Ver.V0, rh1.getHeader().getVer()); @@ -57,12 +56,23 @@ public void test() throws UnsupportedEncodingException { // test encode / decode byte[] mhBytes = rh1.encode(); ResHandshake1 rh2 = ResHandshake1.decode(mhBytes); + assertEquals(rh1.getSuccess(), rh2.getSuccess()); - String v1 = rh1.getBinaryVersion(); - String v2 = rh2.getBinaryVersion(); + assertEquals(rh1.getBinaryVersion().length(), rh2.getBinaryVersion().length()); assertEquals(rh1.getBinaryVersion(), rh2.getBinaryVersion()); - } -} \ No newline at end of file + @Test + public void testMultiple() { + + // Repeat the test multiple times to ensure validity + for (int i = 0; i < 30; i++) { + try { + this.test(); + } catch (UnsupportedEncodingException e) { + e.printStackTrace(); + } + } + } +}